graph: rename nodeFilterIterator => nodeIteratorPair and minor fixes

The length calculation is now correct. This had not effect previously as
NodesOf is lenient in how it handles mis-estimated iterator lengths.
This commit is contained in:
Dan Kortschak
2019-10-25 20:41:06 +10:30
parent bfd8b33ce7
commit 7b679e3cd8
3 changed files with 69 additions and 12 deletions

9
graph/export_test.go Normal file
View File

@@ -0,0 +1,9 @@
// Copyright ©2019 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package graph
var (
NewNodeIteratorPair = newNodeIteratorPair
)