ConnectedQ
ConnectedQ[g]
yields True if undirected graph g is connected. If g is directed, the function returns True if the underlying undirected graph is connected.
ConnectedQ[g,Strong]
yields True if the directed graph g is strongly connected.
ConnectedQ[g,Weak]
yields True if the directed graph g is weakly connected.
Details and Options
- ConnectedQ functionality is now available in the built-in Wolfram Language function ConnectedGraphQ.
- To use ConnectedQ, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
Examples
Basic Examples (2)
ConnectedQ has been superseded by ConnectedGraphQ:
Text
Wolfram Research (2012), ConnectedQ, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/ConnectedQ.html.
CMS
Wolfram Language. 2012. "ConnectedQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/ConnectedQ.html.
APA
Wolfram Language. (2012). ConnectedQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/ConnectedQ.html