You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/gopath/src/github.com/jicksta/ranked-pairs-voting/cli$ go build main.go
# github.com/jicksta/ranked-pairs-voting
../dag.go:31:7: g.Has undefined (type *simple.DirectedGraph has no field or method Has)
../dag.go:36:7: g.Has undefined (type *simple.DirectedGraph has no field or method Has)
../dag.go:51:15: not enough arguments in call to g.RemoveEdge
have (simple.Edge)
want (int64, int64)
../dag.go:79:23: too many arguments in call to dot.Marshal
have (*simple.DirectedGraph, string, string, string, bool)
want (graph.Graph, string, string, string)
I've never used go before, so I worked around this by adding a .Has function inside my local gonum.org/v1/gonum/graph/simple/directed.go, by using fromID and toID instead of newEdge, and by removing the bool on the end, respectively. But ideally somebody who knows what they're doing could patch this or point me to the right way to work around this. (is there some other library path for simple that it should be using?)
The text was updated successfully, but these errors were encountered:
GrumpyOldTroll
added a commit
to GrumpyOldTroll/ranked-pairs-voting
that referenced
this issue
Mar 9, 2019
I've never used go before, so I worked around this by adding a .Has function inside my local gonum.org/v1/gonum/graph/simple/directed.go, by using fromID and toID instead of newEdge, and by removing the bool on the end, respectively. But ideally somebody who knows what they're doing could patch this or point me to the right way to work around this. (is there some other library path for simple that it should be using?)
The text was updated successfully, but these errors were encountered: