本文簡要介紹
networkx.algorithms.cluster.transitivity
的用法。用法:
transitivity(G)
計算圖傳遞性,即 G 中存在的所有可能三角形的分數。
可能的三角形由“triads”(具有共享頂點的兩條邊)的數量標識。
傳遞性是
- G:圖形
- out:浮點數
傳遞性
參數:
返回:
例子:
>>> G = nx.complete_graph(5) >>> print(nx.transitivity(G)) 1.0
相關用法
- Python NetworkX transitive_closure_dag用法及代碼示例
- Python NetworkX transitive_closure用法及代碼示例
- Python NetworkX transitive_reduction用法及代碼示例
- Python NetworkX traveling_salesman_problem用法及代碼示例
- Python NetworkX tree_graph用法及代碼示例
- Python NetworkX triangles用法及代碼示例
- Python NetworkX triad_graph用法及代碼示例
- Python NetworkX tree_data用法及代碼示例
- Python NetworkX to_prufer_sequence用法及代碼示例
- Python NetworkX to_numpy_recarray用法及代碼示例
- Python NetworkX to_dict_of_dicts用法及代碼示例
- Python NetworkX to_scipy_sparse_array用法及代碼示例
- Python NetworkX to_pydot用法及代碼示例
- Python NetworkX threshold_accepting_tsp用法及代碼示例
- Python NetworkX to_vertex_cover用法及代碼示例
- Python NetworkX to_sparse6_bytes用法及代碼示例
- Python NetworkX to_numpy_matrix用法及代碼示例
- Python NetworkX topological_generations用法及代碼示例
- Python NetworkX to_graph6_bytes用法及代碼示例
- Python NetworkX tensor_product用法及代碼示例
- Python NetworkX to_pandas_adjacency用法及代碼示例
- Python NetworkX to_nested_tuple用法及代碼示例
- Python NetworkX to_networkx_graph用法及代碼示例
- Python NetworkX to_numpy_array用法及代碼示例
- Python NetworkX to_agraph用法及代碼示例
注:本文由純淨天空篩選整理自networkx.org大神的英文原創作品 networkx.algorithms.cluster.transitivity。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。