func NewOrderedNodes(nodes []graph.Node) *OrderedNodes {
	return &OrderedNodes{idx: -1, nodes: nodes}
}
NewOrderedNodes returns a OrderedNodes initialized with the provided nodes.
package iterator
import "gonum.org/v1/gonum/graph"
type OrderedNodes struct {
	idx   int
	nodes []graph.Node
}