java.lang.Object
de.grogra.imp2d.layout.Edge
An
Edge represents an edge of a graph which is to be
layouted by a Layout. Such a graph
is constructed as an image of an actual source Graph.- Author:
- Ole Kniemeyer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleantrueiff this edge corresponds to a node in the sourceGraphwhich represents an edge.floatThe height of the 2D-visualization.booleanfinal ObjectThe original edge in the sourceGraph.final NodeThe source node of this edge.final NodeThe target node of this edge.final floatThe edge weight.floatThe width of the 2D-visualization. -
Method Summary
-
Field Details
-
object
The original edge in the sourceGraph. -
edgeNode
public final boolean edgeNodetrueiff this edge corresponds to a node in the sourceGraphwhich represents an edge. -
weight
public final float weightThe edge weight. -
source
The source node of this edge. -
target
The target node of this edge. -
width
public float widthThe width of the 2D-visualization. May be 0. -
height
public float heightThe height of the 2D-visualization. May be 0. -
isAccessed
public boolean isAccessed
-
-
Method Details
-
getNext
Returns the next edge inparent's list of edges- Parameters:
parent- a node- Returns:
- the next edge in
parent's list of edges - See Also:
-
getNeighbor
Returns the neighbor ofn.- Parameters:
n- one of the two incident nodes of this edge- Returns:
- the other incident node
-