本文簡要介紹
networkx.algorithms.connectivity.edge_kcomponents.bridge_components
的用法。用法:
bridge_components(G)
查找所有 bridge-connected 組件 G。
- G:NetworkX 無向圖
- bridge_components:2-edge-connected 組件的生成器
- NetworkXNotImplemented
如果輸入圖是有向圖或多重圖。
參數:
返回:
拋出:
注意:
Bridge-connected 組件也稱為 2-edge-connected 組件。
例子:
>>> # The barbell graph with parameter zero has a single bridge >>> G = nx.barbell_graph(5, 0) >>> from networkx.algorithms.connectivity.edge_kcomponents import bridge_components >>> sorted(map(sorted, bridge_components(G))) [[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]]
相關用法
- Python NetworkX bridges用法及代碼示例
- Python NetworkX binomial_graph用法及代碼示例
- Python NetworkX boykov_kolmogorov用法及代碼示例
- Python NetworkX bfs_edges用法及代碼示例
- Python NetworkX bellman_ford_path用法及代碼示例
- Python NetworkX biconnected_component_edges用法及代碼示例
- Python NetworkX bfs_beam_edges用法及代碼示例
- Python NetworkX biconnected_components用法及代碼示例
- Python NetworkX bfs_predecessors用法及代碼示例
- Python NetworkX bfs_successors用法及代碼示例
- Python NetworkX bfs_tree用法及代碼示例
- Python NetworkX bethe_hessian_matrix用法及代碼示例
- Python NetworkX bellman_ford_predecessor_and_distance用法及代碼示例
- Python NetworkX bipartite_layout用法及代碼示例
- Python NetworkX bidirectional_dijkstra用法及代碼示例
- Python NetworkX bellman_ford_path_length用法及代碼示例
- Python NetworkX negative_edge_cycle用法及代碼示例
- Python NetworkX voronoi_cells用法及代碼示例
- Python NetworkX numerical_edge_match用法及代碼示例
- Python NetworkX inverse_line_graph用法及代碼示例
- Python NetworkX LFR_benchmark_graph用法及代碼示例
- Python NetworkX write_graph6用法及代碼示例
- Python NetworkX DiGraph.__contains__用法及代碼示例
- Python NetworkX average_degree_connectivity用法及代碼示例
- Python NetworkX eulerian_circuit用法及代碼示例
注:本文由純淨天空篩選整理自networkx.org大神的英文原創作品 networkx.algorithms.connectivity.edge_kcomponents.bridge_components。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。