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.
 
     
   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.
更多信息和选项
- 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`"].
范例
基本范例 (2)
ConnectedQ has been superseded by ConnectedGraphQ:
相关指南
- 
    ▪
    
- Cycles and Connectivity ▪
- 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
文本
Wolfram Research (2012),ConnectedQ,Wolfram 语言函数,https://reference.wolfram.com/language/Combinatorica/ref/ConnectedQ.html.
CMS
Wolfram 语言. 2012. "ConnectedQ." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/ConnectedQ.html.
APA
Wolfram 语言. (2012). ConnectedQ. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/Combinatorica/ref/ConnectedQ.html 年
BibTeX
@misc{reference.wolfram_2025_connectedq, author="Wolfram Research", title="{ConnectedQ}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/ConnectedQ.html}", note=[Accessed: 31-October-2025]}
BibLaTeX
@online{reference.wolfram_2025_connectedq, organization={Wolfram Research}, title={ConnectedQ}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/ConnectedQ.html}, note=[Accessed: 31-October-2025]}