GraphPower[g,n]
gives the graph-n power of the graph g.
GraphPower[{vw,…},…]
uses rules vw to specify the graph g.


GraphPower
GraphPower[g,n]
gives the graph-n power of the graph g.
GraphPower[{vw,…},…]
uses rules vw to specify the graph g.
Details and Options

- The graph-n
power has the same vertices, and vertex vi is adjacent to vertex vj only if there is a path of at most length n from vi to vj.
- GraphPower works with undirected graphs, directed graphs, multigraphs, and mixed graphs.
See Also
Related Guides
Text
Wolfram Research (2010), GraphPower, Wolfram Language function, https://reference.wolfram.com/language/ref/GraphPower.html (updated 2015).
CMS
Wolfram Language. 2010. "GraphPower." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/GraphPower.html.
APA
Wolfram Language. (2010). GraphPower. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GraphPower.html
BibTeX
@misc{reference.wolfram_2025_graphpower, author="Wolfram Research", title="{GraphPower}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/GraphPower.html}", note=[Accessed: 18-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_graphpower, organization={Wolfram Research}, title={GraphPower}, year={2015}, url={https://reference.wolfram.com/language/ref/GraphPower.html}, note=[Accessed: 18-August-2025]}