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

@@ -5,7 +5,6 @@
package path
import (
"math"
"testing"
"gonum.org/v1/gonum/graph"
@@ -23,7 +22,7 @@ var (
)
func gnpUndirected(n int, p float64) graph.Undirected {
g := simple.NewUndirectedGraph(0, math.Inf(1))
g := simple.NewUndirectedGraph()
gen.Gnp(g, n, p, nil)
return g
}
@@ -65,7 +64,7 @@ var (
)
func navigableSmallWorldUndirected(n, p, q int, r float64) graph.Undirected {
g := simple.NewUndirectedGraph(0, math.Inf(1))
g := simple.NewUndirectedGraph()
gen.NavigableSmallWorld(g, []int{n, n}, p, q, r, nil)
return g
}