mirror of
https://github.com/gonum/gonum.git
synced 2025-10-17 12:40:52 +08:00
graph/...: remove Weight method from Edge
This commit is contained in:
@@ -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 (
|
||||
|
Reference in New Issue
Block a user