Merge pull request #200 from mewpull/new-edge

graph: move NewEdge method from encoding.Builder to graph.EdgeAdder
This commit is contained in:
Robin Eklind
2017-08-20 23:41:36 +02:00
committed by GitHub
8 changed files with 59 additions and 63 deletions

View File

@@ -10,9 +10,6 @@ import "gonum.org/v1/gonum/graph"
type Builder interface {
graph.Graph
graph.Builder
// NewEdge adds a new edge from the source to the destination node to the
// graph, or returns the existing edge if already present.
NewEdge(from, to graph.Node) graph.Edge
}
// AttributeSetter is implemented by types that can set an encoded graph