SpringEmbedding[g]
beautifies the embedding of graph g by modeling the embedding as a system of springs.
SpringEmbedding[g,step,increment]
can be used to refine the algorithm.


SpringEmbedding
SpringEmbedding[g]
beautifies the embedding of graph g by modeling the embedding as a system of springs.
SpringEmbedding[g,step,increment]
can be used to refine the algorithm.
Details and Options
- SpringEmbedding functionality is now available in the built-in Wolfram Language function GraphLayout.
- To use SpringEmbedding, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
- The value of step tells the function how many iterations to run the algorithm. The value of increment tells the function the distance to move the vertices at each step. The default values are 10 and 0.15 for step and increment, respectively.
See Also
Tech Notes
Related Guides
-
▪
- Displaying Graphs ▪
- Graphs & Networks ▪
- Graph Visualization ▪
- Computation on Graphs ▪
- Graph Construction & Representation ▪
- Graphs and Matrices ▪
- Graph Properties & Measurements ▪
- Graph Operations and Modifications ▪
- Statistical Analysis ▪
- Social Network Analysis ▪
- Graph Properties ▪
- Mathematical Data Formats ▪
- Discrete Mathematics
Text
Wolfram Research (2012), SpringEmbedding, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/SpringEmbedding.html.
CMS
Wolfram Language. 2012. "SpringEmbedding." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/SpringEmbedding.html.
APA
Wolfram Language. (2012). SpringEmbedding. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/SpringEmbedding.html
BibTeX
@misc{reference.wolfram_2025_springembedding, author="Wolfram Research", title="{SpringEmbedding}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/SpringEmbedding.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_springembedding, organization={Wolfram Research}, title={SpringEmbedding}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/SpringEmbedding.html}, note=[Accessed: 16-August-2025]}