A graph model provides read-only access to a graph. The getRoot() method provides access to the root of a (possibly hierarchically nested) graph. Given that object, nodes() returns an iterator over that graphs contents, and inEdges() and outEdges() can be used to traverse edges. get/setVisited() are utility functions to help with graph traversals.
For read-write access to the graph, use the sub-interface MutableGraphModel. @author Michael Shilman @author John Reekie @version $Id: GraphModel.java,v 1.14 2005/10/24 19:09:04 cxh Exp $ @Pt.AcceptedRating Yellow
|
|
|
|