|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Edge
Edge interface. An edge connects two nodes and can be directed or not.
If working with several GraphView
, note that source
and
target
are always nodes in the main view. To obtain nodes
in other views, do:
GraphView view = ...; Node node = node.getNodeData().getNode(view.getViewId());
Method Summary | |
---|---|
EdgeData |
getEdgeData()
Returns edge data. |
int |
getId()
Returns the unique identifier of the edge. |
Node |
getSource()
Returns the source of the edge. |
Node |
getTarget()
Returns the target of the edge. |
float |
getWeight()
Returns the weight of the edge. |
float |
getWeight(double low,
double high)
Returns the weight of the edge for the given time interval. |
boolean |
isDirected()
Returns true if the edge is directed or false if it's undirected. |
boolean |
isSelfLoop()
Returns true if edge source and target are the same. |
void |
setWeight(float weight)
Set the weight of the edge. |
Method Detail |
---|
int getId()
Node getSource()
Node getTarget()
float getWeight()
float getWeight(double low, double high)
low
- the lower interval bound, can be
Double.NEGATIVE_INFINITY
high
- the upper interval bound, can be
Double.POSITIVE_INFINITY
void setWeight(float weight)
weight
- the weight of the edgeboolean isDirected()
true
if the edge is directed or false
if it's undirected.
Default is directed. Note that value is immutable.Special cases:
addEdge()
method.
true
if the edge is directed, false
otherwiseboolean isSelfLoop()
true
if edge source and target are the same.
true
if the edge is a self-loop, false
otherwiseEdgeData getEdgeData()
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |