public interface Edge extends Element, EdgeProperties
Modifier and Type | Method and Description |
---|---|
Node |
getSource()
Returns the egde's source.
|
Node |
getTarget()
Returns the edge's target.
|
int |
getType()
Returns the edge's type.
|
Object |
getTypeLabel()
Returns the edge's type label.
|
double |
getWeight()
Returns the edge's weight.
|
double |
getWeight(double timestamp)
Returns the edge's weight at the given timestamp.
|
double |
getWeight(GraphView view)
Returns the edge's weight in the given graph view.
|
double |
getWeight(Interval interval)
Returns the edge's weight at the given interval.
|
Iterable<Map.Entry> |
getWeights()
Returns an iterable of all weights over time.
|
boolean |
hasDynamicWeight()
Returns true if this edge has a dynamic weight.
|
boolean |
isDirected()
Returns true if this edge is directed.
|
boolean |
isSelfLoop()
Returns true if this edge is a self-loop.
|
void |
setWeight(double weight)
Sets the edge's weight.
|
void |
setWeight(double weight,
double timestamp)
Sets the edge's weight at the given timestamp.
|
void |
setWeight(double weight,
Interval interval)
Sets the edge's weight at the given interval.
|
addInterval, addTimestamp, clearAttributes, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttributeColumns, getAttributeKeys, getAttributes, getAttributes, getId, getIntervals, getLabel, getStoreId, getTimestamps, hasInterval, hasTimestamp, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeInterval, removeTimestamp, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setLabel
Node getSource()
Node getTarget()
double getWeight()
double getWeight(double timestamp)
timestamp
- timestampdouble getWeight(Interval interval)
interval
- intervaldouble getWeight(GraphView view)
Views can configure a time interval and therefore the edge weight over time may vary.
view
- graph viewIterable<Map.Entry> getWeights()
void setWeight(double weight)
weight
- weightvoid setWeight(double weight, double timestamp)
weight
- weighttimestamp
- timestampvoid setWeight(double weight, Interval interval)
weight
- weightinterval
- intervalboolean hasDynamicWeight()
int getType()
Object getTypeLabel()
boolean isSelfLoop()
boolean isDirected()
Copyright © 2007–2015 Gephi Consortium. All rights reserved.