graph: use int64 for node removal

This commit is contained in:
Dan Kortschak
2018-03-25 10:16:12 +10:30
committed by Dan Kortschak
parent 22ecbbb4f5
commit a1b5d898fe
17 changed files with 105 additions and 104 deletions

View File

@@ -129,10 +129,11 @@ type NodeAdder interface {
// NodeRemover is an interface for removing nodes from a graph.
type NodeRemover interface {
// RemoveNode removes a node from the graph, as
// well as any edges attached to it. If the node
// is not in the graph it is a no-op.
RemoveNode(Node)
// RemoveNode removes the node with the given ID
// from the graph, as well as any edges attached
// to it. If the node is not in the graph it is
// a no-op.
RemoveNode(id int64)
}
// EdgeAdder is an interface for adding edges to a graph.