public class KeepHierarchyConstraint extends java.lang.Object implements EdgeWeightConstraint, JsonSerializable
Constructor and Description |
---|
KeepHierarchyConstraint(double modifier) |
Modifier and Type | Method and Description |
---|---|
double |
weight(Edge edge)
Assign a weight to the given edge.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromJson, toJson
public double weight(Edge edge)
EdgeWeightConstraint
ConstrainedSugiyamaLayoutAlgorithm
algorithm.weight
in interface EdgeWeightConstraint
edge
- The edge to assign a weight to.