public class ShallowIterator extends GraphObjectIterator
DeepIterator
Constructor and Description |
---|
ShallowIterator(Graph g) |
ShallowIterator(Graph g,
GraphObject.Kind kind) |
ShallowIterator(Graph g,
GraphObject go) |
hasNext, howMany, next, remove
public ShallowIterator(Graph g)
g
- Graph all of whose elements are collected to form the iteratorDeepIterator
public ShallowIterator(Graph g, GraphObject.Kind kind)
g
- graph whose elements of one kind are collected to form the
iteratorkind
- one of the GraphObject GNODE, GEDGE or GRAPHDeepIterator
public ShallowIterator(Graph g, GraphObject go)
g
- graph whose elements of one class are collected to form the
iteratorgo
- one of the GraphObject subclassesDeepIterator