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()
ILink
getRelation
in interface ILink
public Token getSourceToken()
ILink
getSourceToken
in interface ILink
public Token getTargetToken()
ILink
getTargetToken
in interface ILink
public GraphNode getSource()
Graph.IGraphEdge
getSource
in interface Graph.IGraphEdge<GraphNode>
public GraphNode getTarget()
Graph.IGraphEdge
getTarget
in interface Graph.IGraphEdge<GraphNode>
public java.lang.String getId()
HasId
public 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()
HasIndices
getLowIndex
in interface HasIndices
public int getHighIndex()
HasIndices
getHighIndex
in interface HasIndices
public java.lang.String toString()
toString
in class java.lang.Object