graph/...: remove Weight method from Edge

This commit is contained in:
kortschak
2017-08-22 13:55:14 +09:30
parent ffa13e8edb
commit 7ba61f0ead
48 changed files with 1939 additions and 842 deletions

View File

@@ -155,7 +155,7 @@ type directedGraph struct {
}
func newDirectedGraph() *directedGraph {
return &directedGraph{DirectedGraph: simple.NewDirectedGraph(0, 0)}
return &directedGraph{DirectedGraph: simple.NewDirectedGraph()}
}
func (g *directedGraph) NewNode() graph.Node {