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 boolean
true
iff this edge corresponds to a node in the sourceGraph
which represents an edge.float
The height of the 2D-visualization.boolean
final Object
The original edge in the sourceGraph
.final Node
The source node of this edge.final Node
The target node of this edge.final float
The edge weight.float
The width of the 2D-visualization. -
Method Summary
-
Field Details
-
object
The original edge in the sourceGraph
. -
edgeNode
public final boolean edgeNodetrue
iff this edge corresponds to a node in the sourceGraph
which 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
-