|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.pado.dv.Graph
public class Graph
This class models the graph that contains the dependency parsing information for a sentence (one paragraph of input data).
| Constructor Summary | |
|---|---|
Graph()
Initialise an empty graph. |
|
| Method Summary | |
|---|---|
void |
addEdge(Edge thisEdge)
Add an edge to the Graph. |
void |
addNode(Node node)
Add a node to the graph |
java.util.Set |
getAllNodeIndices()
Returns the set of all node indices in the Graph. |
java.util.HashMap |
getEdges(java.lang.Integer vertice)
Returns all edges for a given node |
Node |
getNode(java.lang.Integer index)
Get a node from the Graph. |
boolean |
isEmpty()
Checks if there are no edges in the Graph. |
void |
replaceBy(java.lang.Integer oldID,
java.lang.Integer newID)
Replace all occurrences of some index in the Graph by a new index. |
java.lang.String |
toString()
return a string representation of the graph. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Graph()
| Method Detail |
|---|
public void addNode(Node node)
public Node getNode(java.lang.Integer index)
public void addEdge(Edge thisEdge)
public java.util.HashMap getEdges(java.lang.Integer vertice)
public java.util.Set getAllNodeIndices()
public void replaceBy(java.lang.Integer oldID,
java.lang.Integer newID)
public boolean isEmpty()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||