"SpringElectricalEmbedding" (Graph Layout Method)
- Vertex layout for GraphLayout.
- Use spring electrical embedding to lay out vertices of a graph.
Details & Options
- The spring electrical embedding is a graph-drawing technique to position vertices of a graph so that they minimize mechanical and electrical energy when each vertex has a charge and each edge corresponds to a spring.
- The spring electrical embedding is typically used to lay out complex large graphs.
- The layout xi of the vertices vi of the graph is calculated by minimizing the energy function with
- is a constant that regulates the relative strength of the repulsive force and is the relative spring length.
- Vertices can be embedded in .
- The following model parameters can be given:
"RepulsiveForcePower" repulsive force constant "SpringConstant" spring constant
- The following graph parameters can be given:
"EdgeWeighted" whether to use edge weights "VertexWeighted" whether to use vertex weights
- Possible settings to control the energy minimization process include:
"EnergyControl" how the energy function is controlled during minimization "InferentialDistance" cutoff distance for inference from faraway vertices "MaxIterations" maximum number of iterations "RandomSeed" seed for the random generator for initial vertex placement "StepControl" how step lengths are modified during energy minimization "StepLength" initial step length used in moving the vertices "Tolerance" tolerance used in terminating the process
Examplesopen allclose all
With the setting "EdgeWeighted"True, edge weights are used: