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

@@ -19,7 +19,7 @@ func TestDijkstraFrom(t *testing.T) {
for _, test := range testgraphs.ShortestPathTests {
g := test.Graph()
for _, e := range test.Edges {
g.SetEdge(e)
g.SetWeightedEdge(e)
}
var (
@@ -85,7 +85,7 @@ func TestDijkstraAllPaths(t *testing.T) {
for _, test := range testgraphs.ShortestPathTests {
g := test.Graph()
for _, e := range test.Edges {
g.SetEdge(e)
g.SetWeightedEdge(e)
}
var (