|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsem.graph.Edge
public class Edge
A directed edge from head to dependent, connecting two nodes.
Constructor Summary | |
---|---|
Edge(java.lang.String label,
Node head,
Node dep)
Create a new edge between two nodes. |
Method Summary | |
---|---|
Node |
getDep()
Get the dependent node. |
Node |
getHead()
Get the head node. |
java.lang.String |
getLabel()
Get the relation type of this edge. |
void |
print()
Print the edge information to System.out. |
void |
setLabel(java.lang.String label)
Set the relation type of this edge. |
java.lang.String |
toString()
Create a string representation of the edge. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Edge(java.lang.String label, Node head, Node dep)
label
- The relation type.head
- Head node.dep
- Dependent node.Method Detail |
---|
public Node getHead()
public Node getDep()
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- Relation type.public void print()
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 |