public class GraphEdge extends java.lang.Object implements HasId, IGraphEdgeWithIndices<GraphNode>, ILink, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
information
Information
|
private BasicRelation |
relation
Relation
|
private static long |
serialVersionUID |
private GraphNode |
source
Source node
|
private GraphNode |
target
Target node
|
| Constructor and Description |
|---|
GraphEdge(BasicRelation relation,
GraphNode source,
GraphNode target,
java.lang.String information)
Construct
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHighIndex()
Get high index
|
java.lang.String |
getId()
Get id
|
java.lang.String |
getInformation()
Get information
|
java.lang.String |
getLabel()
Get label
|
GraphNode |
getLeftNode()
Get left node
|
java.lang.String |
getLongName()
Get long name
|
int |
getLowIndex()
Get low index
|
BasicRelation |
getRelation()
Get relation
|
GraphNode |
getRightNode()
Get right node
|
GraphNode |
getSource()
Edge source node
|
Token |
getSourceToken()
Get source token
|
int |
getSpan()
Compute span (as bound by node indices)
|
java.lang.String |
getSpecific()
Get specific
|
GraphNode |
getTarget()
Edge target node
|
Token |
getTargetToken()
Get target token
|
boolean |
isBackwards()
Is backwards
|
boolean |
isLeftIncident(GraphNode node)
Is left incident
|
boolean |
isRightIncident(GraphNode node)
Is right incident
|
java.lang.String |
toString() |
private static final long serialVersionUID
private final BasicRelation relation
private final GraphNode source
private final GraphNode target
private final java.lang.String information
public GraphEdge(BasicRelation relation, GraphNode source, GraphNode target, java.lang.String information)
relation - relationsource - source nodetarget - target nodeinformation - informationpublic BasicRelation getRelation()
ILinkgetRelation in interface ILinkpublic Token getSourceToken()
ILinkgetSourceToken in interface ILinkpublic Token getTargetToken()
ILinkgetTargetToken in interface ILinkpublic GraphNode getSource()
Graph.IGraphEdgegetSource in interface Graph.IGraphEdge<GraphNode>public GraphNode getTarget()
Graph.IGraphEdgegetTarget in interface Graph.IGraphEdge<GraphNode>public java.lang.String getId()
HasIdpublic java.lang.String getSpecific()
public java.lang.String getLongName()
public java.lang.String getLabel()
public java.lang.String getInformation()
public int getSpan()
public boolean isBackwards()
public boolean isRightIncident(GraphNode node)
node - nodepublic boolean isLeftIncident(GraphNode node)
node - nodepublic GraphNode getLeftNode()
public GraphNode getRightNode()
public int getLowIndex()
HasIndicesgetLowIndex in interface HasIndicespublic int getHighIndex()
HasIndicesgetHighIndex in interface HasIndicespublic java.lang.String toString()
toString in class java.lang.Object