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