Bicomponents[g]
gives the biconnected components of the undirected graph g.
Bicomponents
Bicomponents[g]
gives the biconnected components of the undirected graph g.
更多信息和选项
- Bicomponents functionality is now available in the built-in Wolfram Language function KVertexConnectedComponents.
- To use Bicomponents, you first need to load the Graph Utilities Package using Needs["GraphUtilities`"].
- A biconnected component is a maximal subgraph that has no cutpoint, where a cutpoint is a vertex v such that the subgraph becomes disconnected if v and all its edges are removed.
- Bicomponents treats the input g as an undirected graph.
范例
打开所有单元 关闭所有单元基本范例 (2)
Needs["GraphUtilities`"]This shows that a simple line with two vertices is biconnected:
g = {1 -> 2};GraphPlot[g, VertexLabeling -> True]Bicomponents[g]Bicomponents has been superseded by KVertexConnectedComponents:
g = Graph[{12}]KVertexConnectedComponents[g, 2]Scope (1)
Needs["GraphUtilities`"]g = {1 -> 2, 2 -> 3, 3 -> 4, 4 -> 5, 5 -> 6, 6 -> 15, 15 -> 7, 6 -> 1, 7 -> 8, 8 -> 9, 9 -> 10, 10 -> 11, 11 -> 12, 12 -> 7};GraphPlot[g, VertexLabeling -> True]The graph has four bicomponents, one for each cycle and two for the line joining the cycles:
Bicomponents[g]Properties & Relations (2)
Needs["GraphUtilities`"]This shows that a simple line with two vertices is biconnected:
g = {1 -> 2};GraphPlot[g, VertexLabeling -> True]Bicomponents[g]Needs["GraphUtilities`"]g = {1 -> 2, 2 -> 3, 3 -> 4, 4 -> 1, 5 -> 6, 6 -> 7, 7 -> 5};GraphPlot[g, VertexLabeling -> True]This shows its biconnected components and connected components:
Bicomponents[g]The result from WeakComponents is always smaller than that of Bicomponents:
WeakComponents[g]相关指南
-
▪
- 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
文本
Wolfram Research (2007),Bicomponents,Wolfram 语言函数,https://reference.wolfram.com/language/GraphUtilities/ref/Bicomponents.html.
CMS
Wolfram 语言. 2007. "Bicomponents." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GraphUtilities/ref/Bicomponents.html.
APA
Wolfram 语言. (2007). Bicomponents. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/GraphUtilities/ref/Bicomponents.html 年
BibTeX
@misc{reference.wolfram_2026_bicomponents, author="Wolfram Research", title="{Bicomponents}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GraphUtilities/ref/Bicomponents.html}", note=[Accessed: 17-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_bicomponents, organization={Wolfram Research}, title={Bicomponents}, year={2007}, url={https://reference.wolfram.com/language/GraphUtilities/ref/Bicomponents.html}, note=[Accessed: 17-August-2026]}