public interface GraphModel<V>
equals. Nodes may not be null.| Modifier and Type | Method and Description |
|---|---|
Collection<? extends V> |
neighbours(V node)
Return all nodes to which there is an edge from a given node.
|
Collection<? extends V> neighbours(V node)
A return value of null indicates that the given node object is
not part of the graph covered by this graph model. A graph model is
called closed iff neighbours(v).contains(w) implies
neighbours(w) != null for all node objects v, w.
All traversal algorithms require graph models to be closed.
node - a nodenode,
or null if node is not a node of the graph represented by
this model.see also the complete user documentation .