public class WeightedEdge extends GraphEdge implements Weightable
DEPENDENCY_EDGE, PHRASE_STRUCTURE_EDGE, SECONDARY_EDGE| Constructor and Description |
|---|
WeightedEdge() |
WeightedEdge(Node source,
Node target,
int type) |
WeightedEdge(Node source,
Node target,
int type,
java.lang.Double weight) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Resets the graph element.
|
int |
compareTo(WeightedEdge that) |
boolean |
equals(java.lang.Object obj) |
double |
getWeight() |
int |
hashCode() |
void |
setWeight(double weight) |
java.lang.String |
toString() |
compareTo, getSource, getTarget, getType, setEdgeaddLabel, addLabel, addLabel, compareTo, getBelongsToGraph, getLabelCode, getLabelSet, getLabelSymbol, getLabelTypes, hasLabel, isLabeled, nLabels, removeLabel, removeLabels, setBelongsToGraphaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddLabel, addLabel, addLabel, getBelongsToGraph, getLabelCode, getLabelSet, getLabelSymbol, getLabelTypes, hasLabel, isLabeled, nLabels, removeLabel, removeLabels, setBelongsToGraphpublic WeightedEdge()
public WeightedEdge(Node source, Node target, int type) throws MaltChainedException
MaltChainedExceptionpublic WeightedEdge(Node source, Node target, int type, java.lang.Double weight) throws MaltChainedException
MaltChainedExceptionpublic void clear() throws MaltChainedException
GraphElementclear in interface Elementclear in class GraphEdgeMaltChainedExceptionpublic double getWeight()
getWeight in interface Weightablepublic void setWeight(double weight)
setWeight in interface Weightablepublic int compareTo(WeightedEdge that)
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.