Modifier and Type | Field and Description |
---|---|
static int |
DEPENDENCY_EDGE |
static int |
PHRASE_STRUCTURE_EDGE |
static int |
SECONDARY_EDGE |
Modifier and Type | Method and Description |
---|---|
Node |
getSource()
Returns the source node of the edge.
|
Node |
getTarget()
Returns the target node of the edge.
|
int |
getType()
Returns the edge type (DEPENDENCY_EDGE, PHRASE_STRUCTURE_EDGE or SECONDARY_EDGE).
|
void |
setEdge(Node source,
Node target,
int type)
Sets the edge with a source node, a target node and a type (DEPENDENCY_EDGE, PHRASE_STRUCTURE_EDGE
or SECONDARY_EDGE).
|
addLabel, addLabel, addLabel, clear, getBelongsToGraph, getLabelCode, getLabelSet, getLabelSymbol, getLabelTypes, hasLabel, isLabeled, nLabels, removeLabel, removeLabels, setBelongsToGraph
static final int DEPENDENCY_EDGE
static final int PHRASE_STRUCTURE_EDGE
static final int SECONDARY_EDGE
void setEdge(Node source, Node target, int type) throws MaltChainedException
source
- a source nodetarget
- a target nodetype
- a type (DEPENDENCY_EDGE, PHRASE_STRUCTURE_EDGE or SECONDARY_EDGE)MaltChainedException
Node getSource()
Node getTarget()
int getType()
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.