Documentation
¶
Overview ¶
Package path defines path structures used by network-graph algorithms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphPaths ¶
GraphPaths is a mapping of start node IDs to end node IDs and their corresponding paths.
func (GraphPaths) OnlyLength ¶
func (g GraphPaths) OnlyLength() PathLength
OnlyLength returns a slice of PathLength representing the lengths of all paths in the graph.
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
Path represents an ordered sequence of nodes with a hop distance.
func New ¶
New constructs a Path from the given nodes. Distance is hops (edges). If no nodes are provided, the path is considered infinite (unreachable).
func (*Path) IsInfinite ¶
IsInfinite reports whether the path is infinite (unreachable).
Click to show internal directories.
Click to hide internal directories.