github.com/LdDl/ch@v1.7.8/shortcut.go (about)

     1  package ch
     2  
     3  // ShortcutPath Representation of shortcut between vertices
     4  //
     5  // From - ID of source vertex
     6  // To - ID of target vertex
     7  // ViaVertex - ID of vertex through which the shortcut exists
     8  // Cost - summary cost of path between two vertices
     9  //
    10  type ShortcutPath struct {
    11  	From int64
    12  	To   int64
    13  	Via  int64
    14  	Cost float64
    15  }