mirror of
https://github.com/gonum/gonum.git
synced 2025-10-09 17:10:16 +08:00
Merge pull request #200 from mewpull/new-edge
graph: move NewEdge method from encoding.Builder to graph.EdgeAdder
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user