Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LongestPath ¶
func LongestPath(weights []WeightedEdges) int
LongestPath returns the weight of the longest path in an undirected tree.
Types ¶
type WeightedEdges ¶
type WeightedEdges struct {
// contains filtered or unexported fields
}
WeightedEdges is the weight of an undirected edge.
Click to show internal directories.
Click to hide internal directories.