Default attraction parameter.
Default repulsion parameter.
Default edge weight increment parameter.
Attraction parameter.
Repulsion parameter.
Edge weight increment parameter.
Constructs a VOS layout algorithm.
Initializes a VOS layout algorithm with a specified attraction parameter, repulsion parameter, and edge weight increment parameter.
Attraction parameter
Repulsion parameter
Edge weight increment parameter
Returns the attraction parameter.
Attraction parameter
Returns the repulsion parameter.
Repulsion parameter
Returns the edge weight increment parameter.
Edge weight increment parameter
Sets the attraction parameter.
Attraction parameter
Sets the repulsion parameter.
Repulsion parameter
Sets the edge weight increment parameter.
Edge weight increment parameter
Calculates the quality of a layout using the VOS quality function.
The VOS quality function is given by
1 / attraction * sum(a[i][j] * d(x[i], x[j]) ^
attraction) - 1 / repulsion * sum(d(x[i], x[j]) ^
repulsion),
where a[i][j]
is the weight of the edge between nodes i
and j
and
x[i] = (x[i][1], x[i][2])
are the coordinates of node i
. The function
d(x[i], x[j])
is the Euclidean distance between nodes i
and j
. The
sum is taken over all pairs of nodes i
and j
with j < i
. The
attraction parameter must be greater than the repulsion parameter. The
lower the value of the VOS quality function, the higher the quality of the
layout.
Quality of the layout
Clones the algorithm.
Cloned algorithm
Generated using TypeDoc
Abstract base class for layout algorithms that use the VOS quality function.