|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgraph.Graph
| Constructor Summary | |
Graph(java.io.InputStream stream)
Initializes a new Graph by parsing the graph-file from the argument stream |
|
Graph(java.io.InputStream stream,
java.lang.String nodePrefix,
java.lang.String edgePrefix)
Initializes a new Graph by parsing the graph-file from the argument stream. |
|
| Method Summary | |
Edge |
addEdge(Node source,
Node dest)
Adds an Edge to the graph. |
Edge |
addEdge(java.lang.String label,
Node source,
Node dest)
Adds an Edge to the graph. |
void |
addNode(Node node)
Adds a Node to the graph |
Edge |
getEdge(java.lang.String label)
Returns the Edge in the Graph with label given as argument |
java.util.ArrayList |
getEdges()
Returns an ArrayList containing all the edges in the graph |
java.util.ArrayList |
getEdges(java.lang.String property,
java.lang.String value)
Returns an ArrayList containing all the edges in the graph that have a given property with a given value |
Node |
getNode(java.lang.String label)
Returns the Node in the Graph with label given as argument |
java.util.ArrayList |
getNodes()
Returns an ArrayList containing all the nodes in the graph |
java.util.ArrayList |
getNodes(java.lang.String property,
java.lang.String value)
Returns an ArrayList containing all the nodes in the graph that have a given property with a given value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Graph(java.io.InputStream stream,
java.lang.String nodePrefix,
java.lang.String edgePrefix)
stream - an InputStream to be parsednodePrefix - a String to be used as a prefix for the node labelsedgePrefix - a String to be used as a prefix for the edge labelspublic Graph(java.io.InputStream stream)
stream - InputStream to be parsed| Method Detail |
public Node getNode(java.lang.String label)
label - label of the Node
public Edge getEdge(java.lang.String label)
label - label of the Edge
public java.util.ArrayList getNodes()
public java.util.ArrayList getEdges()
public void addNode(Node node)
node - a node to be added.
public Edge addEdge(Node source,
Node dest)
source - the source node of the edgedest - the destination node of the edge
public Edge addEdge(java.lang.String label,
Node source,
Node dest)
label - the label for the new edgesource - the source node of the edgedest - the destination node of the edge
public java.util.ArrayList getNodes(java.lang.String property,
java.lang.String value)
property - a String containing the requested propertyvalue - a String containing the requested value
public java.util.ArrayList getEdges(java.lang.String property,
java.lang.String value)
property - a String containing the requested propertyvalue - a String containing the requested value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||