mirror of
https://github.com/gonum/gonum.git
synced 2025-10-14 19:26:30 +08:00
graph/encoding: update for int64 IDs
This commit is contained in:
@@ -266,7 +266,7 @@ func (gen *generator) popSubgraph() []graph.Node {
|
||||
// unique returns the set of unique nodes contained within ns.
|
||||
func unique(ns []graph.Node) []graph.Node {
|
||||
var nodes []graph.Node
|
||||
seen := make(set.Ints)
|
||||
seen := make(set.Int64s)
|
||||
for _, n := range ns {
|
||||
id := n.ID()
|
||||
if seen.Has(id) {
|
||||
|
Reference in New Issue
Block a user