|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsalvo.jesus.graph.GraphImpl
salvo.jesus.graph.DirectedGraphImpl
salvo.jesus.graph.DirectedAcyclicGraphImpl
edu.ksu.cis.kdd.util.graph.Graph
Wrapper for OpenJGraph
| Field Summary | |
protected java.lang.String |
name
|
protected java.util.Hashtable |
nodeTable
|
protected java.util.Hashtable |
property
|
| Fields inherited from class salvo.jesus.graph.GraphImpl |
factory, traversal |
| Constructor Summary | |
Graph()
|
|
| Method Summary | |
void |
add(salvo.jesus.graph.Vertex v)
Adding vertex override to accomodate retrieval under certain name. |
salvo.jesus.graph.Edge |
addEdge(salvo.jesus.graph.Vertex v1,
salvo.jesus.graph.Vertex v2)
Tell the user not to use this addEdge(Vertex, Vertex) |
void |
addNode(salvo.jesus.graph.Vertex v)
An alias to add(Vertex) |
void |
addNodes(java.util.Collection c)
Add multiple nodes at once. |
boolean |
containsNode(Node v)
|
boolean |
equals(java.lang.Object o)
Equals |
TableSet |
getAdjacencyList()
Construct the adjacency list table for a particular graph. |
java.util.Set |
getEdges()
Return the set of edges. |
int |
getError(Graph goldGraph)
|
java.lang.String |
getName()
Returns the name. |
Node |
getNode(java.lang.String name)
Get node called name. |
java.util.List |
getNodeList()
|
java.util.Set |
getNodeNames()
Returns the set of node names |
java.util.Set |
getNodes()
|
java.util.Hashtable |
getProperty()
Returns the property. |
java.lang.Object |
getProperty(java.lang.Object p)
Get the property value with key p. |
TableSet |
getReverseAdjacencyList()
Construct the adjacency list table for a particular graph. |
int |
hashCode()
|
void |
putProperty(java.lang.Object p,
java.lang.Object v)
Put the property p with value v |
void |
remove(salvo.jesus.graph.Vertex v)
Remove a node |
void |
removeEdge(salvo.jesus.graph.Vertex v1,
salvo.jesus.graph.Vertex v2)
|
void |
removeNode(salvo.jesus.graph.Vertex v)
Remove a node. |
void |
removeProperty(java.lang.Object p)
Remove the property with key p. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setProperty(java.util.Hashtable property)
Sets the property. |
java.lang.String |
toString()
|
| Methods inherited from class salvo.jesus.graph.DirectedAcyclicGraphImpl |
getRoot, reverseTopologicalSort, reverseTopologicalSort, topologicalSort, topologicalSort |
| Methods inherited from class salvo.jesus.graph.DirectedGraphImpl |
getEdge, getIncomingAdjacentVertices, getIncomingEdges, getOutgoingAdjacentVertices, getOutgoingEdges, isCycle, isPath |
| Methods inherited from class salvo.jesus.graph.GraphImpl |
addEdge, addGraphAddEdgeListener, addGraphAddVertexListener, addGraphRemoveEdgeListener, addGraphRemoveVertexListener, addListener, cloneVertices, containsEdge, containsVertex, forgetConnectedSets, getAdjacentVertices, getAdjacentVertices, getConnectedSet, getConnectedSet, getDegree, getDegree, getEdges, getEdgesCount, getEdgeSet, getGraphFactory, getTraversal, getVertexSet, getVertices, getVerticesCount, getVerticesIterator, isConnected, removeEdge, removeEdges, removeGraphAddEdgeListener, removeGraphAddVertexListener, removeGraphRemoveEdgeListener, removeGraphRemoveVertexListener, removeListener, setGraphFactory, setTraversal, traverse |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface salvo.jesus.graph.DirectedGraph |
getEdge, getIncomingAdjacentVertices, getIncomingEdges, getOutgoingAdjacentVertices, getOutgoingEdges, isCycle, isPath |
| Methods inherited from interface salvo.jesus.graph.Graph |
addEdge, addGraphAddEdgeListener, addGraphAddVertexListener, addGraphRemoveEdgeListener, addGraphRemoveVertexListener, addListener, cloneVertices, getAdjacentVertices, getAdjacentVertices, getConnectedSet, getConnectedSet, getDegree, getDegree, getEdges, getEdgesCount, getEdgeSet, getGraphFactory, getTraversal, getVertexSet, getVertices, getVerticesCount, getVerticesIterator, isConnected, removeEdge, removeEdges, removeGraphAddEdgeListener, removeGraphAddVertexListener, removeGraphRemoveEdgeListener, removeGraphRemoveVertexListener, removeListener, setGraphFactory, setTraversal, traverse |
| Field Detail |
protected java.lang.String name
protected java.util.Hashtable nodeTable
protected java.util.Hashtable property
| Constructor Detail |
public Graph()
| Method Detail |
public void add(salvo.jesus.graph.Vertex v)
add in interface salvo.jesus.graph.GraphGraph.add(Vertex)public void addNode(salvo.jesus.graph.Vertex v)
v - public void addNodes(java.util.Collection c)
c -
public salvo.jesus.graph.Edge addEdge(salvo.jesus.graph.Vertex v1,
salvo.jesus.graph.Vertex v2)
addEdge in interface salvo.jesus.graph.GraphGraph.addEdge(Vertex, Vertex)public boolean containsNode(Node v)
GraphImpl.containsVertex(Vertex)public void remove(salvo.jesus.graph.Vertex v)
remove in interface salvo.jesus.graph.GraphGraph.remove(Vertex)public void removeNode(salvo.jesus.graph.Vertex v)
v -
public void removeEdge(salvo.jesus.graph.Vertex v1,
salvo.jesus.graph.Vertex v2)
public Node getNode(java.lang.String name)
name -
public java.util.Set getNodes()
Graph.getVertexSet()public java.util.List getNodeList()
public java.util.Set getNodeNames()
public java.util.Set getEdges()
public java.lang.String getName()
public void setName(java.lang.String name)
name - The name to setpublic boolean equals(java.lang.Object o)
Object.equals(Object)public int hashCode()
Object.hashCode()public java.lang.String toString()
Object.toString()public java.util.Hashtable getProperty()
getProperty in interface HasPropertypublic void setProperty(java.util.Hashtable property)
setProperty in interface HasPropertyproperty - The property to setpublic java.lang.Object getProperty(java.lang.Object p)
getProperty in interface HasPropertyp -
public void putProperty(java.lang.Object p,
java.lang.Object v)
putProperty in interface HasPropertyp - v - public void removeProperty(java.lang.Object p)
removeProperty in interface HasPropertyp - public TableSet getAdjacencyList()
public TableSet getReverseAdjacencyList()
public int getError(Graph goldGraph)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||