|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface provides the basic methods through which a JGraph can access
data stored within any Graph object.
| Method Summary | |
void |
addGraphListener(GraphListener l)
This method adds a GraphListener as an interested listener of events to this Graph. |
int |
getEdgeCount()
Returns the number of edges in the graph. |
Vector |
getEdges()
Returns an enumeration of all edges in the graph. |
Vector |
getEdgesFrom(Object sourceValue)
Returns an vector of all edges in the graph coming from the node with the indicated value. |
Vector |
getEdgesFromTo(Object sourceValue,
Object destValue)
Given the value of the source node and the destination node, this method will return a list of all edges going between the two nodes. |
Vector |
getEdgesTo(Object destinationValue)
Returns an vector of all edges in the graph going to the node with the indicated value. |
int |
getNodeCount()
Returns the number of nodes in the graph. |
Vector |
getNodes()
Returns an enumeration of all nodes in the graph. |
boolean |
getUseDotEquals()
Returns true if semantic equivalence is used, and false if reference equality is used. |
boolean |
isDirected()
Returns whether or not the graph is directed. |
boolean |
isSimple()
Returns whether or not the graph is simple (ie - there are no edges from some node to itself and there is at most one edge between any two different nodes). |
void |
removeGraphListener(GraphListener l)
This method removes the GraphListener as an interestd listener of events to this Graph. |
String |
toString(boolean verbose)
Returns a verbose description if passed in true. |
| Method Detail |
public void addGraphListener(GraphListener l)
l - The graph listener to add.public void removeGraphListener(GraphListener l)
l - The graph listener to remove.public Vector getNodes()
public Vector getEdges()
public Vector getEdgesFrom(Object sourceValue)
sourceValue - The value of the source node.
public Vector getEdgesTo(Object destinationValue)
destinationValue - The value of the destination node.
public Vector getEdgesFromTo(Object sourceValue,
Object destValue)
sourceValue - The value of the source node.destValue - The value of the destination node.
public int getNodeCount()
public int getEdgeCount()
public boolean isDirected()
public boolean isSimple()
public boolean getUseDotEquals()
public String toString(boolean verbose)
verbose - Whether or not to return a verbose description.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||