|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.graph.Graph
Graph representation using the adjacency list form. See the book 'Introduction to Algorithms' by Cormen, Leiserson, and Rivest.
| Constructor Summary | |
Graph()
|
|
| Method Summary | |
void |
addEdge(com.solarmetric.rd.graph.Edge edge)
Add an edge to the graph. |
void |
addNode(java.lang.Object node)
Add a node to the graph. |
void |
clear()
Clear the graph. |
boolean |
containsNode(java.lang.Object node)
Return true if the graph contains the given node. |
com.solarmetric.rd.graph.Edge[] |
getEdges()
Return all edges in the graph. |
com.solarmetric.rd.graph.Edge[] |
getEdges(java.lang.Object from,
java.lang.Object to)
Return all the edges from one node to another. |
com.solarmetric.rd.graph.Edge[] |
getEdgesFrom(java.lang.Object node)
Return all the edges from a particular node. |
com.solarmetric.rd.graph.Edge[] |
getEdgesTo(java.lang.Object node)
Return all the edges to a particular node. |
java.lang.Object[] |
getNodes()
Return all nodes in the graph. |
boolean |
removeEdge(com.solarmetric.rd.graph.Edge edge)
Remove an edge from the graph. |
boolean |
removeNode(java.lang.Object node)
Remove a node from the graph. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Graph()
| Method Detail |
public void clear()
public boolean containsNode(java.lang.Object node)
public java.lang.Object[] getNodes()
public void addNode(java.lang.Object node)
public boolean removeNode(java.lang.Object node)
public com.solarmetric.rd.graph.Edge[] getEdges()
public com.solarmetric.rd.graph.Edge[] getEdgesFrom(java.lang.Object node)
public com.solarmetric.rd.graph.Edge[] getEdgesTo(java.lang.Object node)
public com.solarmetric.rd.graph.Edge[] getEdges(java.lang.Object from,
java.lang.Object to)
public void addEdge(com.solarmetric.rd.graph.Edge edge)
public boolean removeEdge(com.solarmetric.rd.graph.Edge edge)
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||