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.
Examples
open allclose allScope (5)
GraphPower works with undirected graphs:
Wolfram Research (2010), GraphPower, Wolfram Language function, https://reference.wolfram.com/language/ref/GraphPower.html (updated 2015).
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