graph/encoding: update for int64 IDs

This commit is contained in:
kortschak
2017-06-16 11:05:56 +09:30
committed by Dan Kortschak
parent 543e1d4f60
commit 25c06a99f7
3 changed files with 48 additions and 35 deletions

View File

@@ -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) {