Skip to content

Commit

Permalink
graph/{multi,simple}: address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Sep 23, 2018
1 parent cb24751 commit a15d802
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions graph/multi/weighted_directed.go
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion graph/multi/weighted_undirected.go
Expand Up @@ -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 {
Expand Down

0 comments on commit a15d802

Please sign in to comment.