ToCombinatoricaGraph[g]
returns the Combinatorica representation of the graph g.
ToCombinatoricaGraph[g,n]
returns the graph g, adding additional unconnected vertices, if necessary, to create a graph with n vertices.
ToCombinatoricaGraph
ToCombinatoricaGraph[g]
returns the Combinatorica representation of the graph g.
ToCombinatoricaGraph[g,n]
returns the graph g, adding additional unconnected vertices, if necessary, to create a graph with n vertices.
Details and Options
- To use ToCombinatoricaGraph, you first need to load the Graph Utilities Package using Needs["GraphUtilities`"].
- The following option can be given:
-
Method Automatic method used to lay out the graph
Examples
Basic Examples (2)
Needs["GraphUtilities`"]g = {a -> b, b -> c, c -> d, d -> e, e -> f, f -> a, i -> k, k -> h, h -> i, k -> a, k -> b, h -> c, h -> d, i -> f, i -> e};This shows the Combinatorica object:
ShowGraph[ToCombinatoricaGraph[g]]Use Graph to build graphs specified by a rule list:
Graph[{a -> b, b -> c, c -> d, d -> e, e -> f, f -> a, i -> k, k -> h, h -> i, k -> a, k -> b, h -> c, h -> d, i -> f, i -> e}]See Also
Tech Notes
Related Guides
-
▪
- Graph Utilities Package ▪
- 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 (2007), ToCombinatoricaGraph, Wolfram Language function, https://reference.wolfram.com/language/GraphUtilities/ref/ToCombinatoricaGraph.html.
CMS
Wolfram Language. 2007. "ToCombinatoricaGraph." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphUtilities/ref/ToCombinatoricaGraph.html.
APA
Wolfram Language. (2007). ToCombinatoricaGraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphUtilities/ref/ToCombinatoricaGraph.html
BibTeX
@misc{reference.wolfram_2026_tocombinatoricagraph, author="Wolfram Research", title="{ToCombinatoricaGraph}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GraphUtilities/ref/ToCombinatoricaGraph.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_tocombinatoricagraph, organization={Wolfram Research}, title={ToCombinatoricaGraph}, year={2007}, url={https://reference.wolfram.com/language/GraphUtilities/ref/ToCombinatoricaGraph.html}, note=[Accessed: 13-June-2026]}