diff --git a/graph/multi/weighted_directed.go b/graph/multi/weighted_directed.go index 5f31b81ecd..4ef5b0b55e 100644 --- a/graph/multi/weighted_directed.go +++ b/graph/multi/weighted_directed.go @@ -130,8 +130,8 @@ func (g *WeightedDirectedGraph) SetWeightedLine(l graph.WeightedLine) { g.lineIDs.Use(l.ID()) } -// RemoveLine removes l from the graph, leaving the terminal nodes. If the line does not exist -// it is a no-op. +// RemoveLine removes the line with the given end point and line IDs from the graph, +// leaving the terminal nodes. If the line does not exist it is a no-op. func (g *WeightedDirectedGraph) RemoveLine(fid, tid, id int64) { if _, ok := g.nodes[fid]; !ok { return diff --git a/graph/multi/weighted_undirected.go b/graph/multi/weighted_undirected.go index 36938fe417..ac92063c37 100644 --- a/graph/multi/weighted_undirected.go +++ b/graph/multi/weighted_undirected.go @@ -87,7 +87,7 @@ func (g *WeightedUndirectedGraph) RemoveNode(id int64) { g.nodeIDs.Release(id) } -// NewLine returns a new WeightedLine from the source to the destination node. +// NewWeightedLine returns a new WeightedLine from the source to the destination node. // The returned WeightedLine will have a graph-unique ID. // The Line's ID does not become valid in g until the Line is added to g. func (g *WeightedUndirectedGraph) NewWeightedLine(from, to graph.Node, weight float64) graph.WeightedLine {