本文簡要介紹
networkx.algorithms.centrality.local_reaching_centrality
的用法。用法:
local_reaching_centrality(G, v, paths=None, weight=None, normalized=True)
返回有向圖中節點的局部到達中心性。
有向圖中節點的
local reaching centrality
是從該節點可到達的其他節點的比例[1]。- h:浮點數
圖
G
中節點v
的局部到達中心性。
參數:
返回:
參考:
- 1
Mones, Enys, Lilla Vicsek, and Tamás Vicsek. “Hierarchy Measure for Complex Networks.”
PLoS ONE
7.3 (2012): e33799. https://doi.org/10.1371/journal.pone.0033799
例子:
>>> G = nx.DiGraph() >>> G.add_edges_from([(1, 2), (1, 3)]) >>> nx.local_reaching_centrality(G, 3) 0.0 >>> G.add_edge(3, 2) >>> nx.local_reaching_centrality(G, 3) 0.5
相關用法
- Python NetworkX local_and_global_consistency用法及代碼示例
- Python NetworkX local_node_connectivity用法及代碼示例
- Python NetworkX local_bridges用法及代碼示例
- Python NetworkX local_edge_connectivity用法及代碼示例
- Python NetworkX louvain_communities用法及代碼示例
- Python NetworkX latapy_clustering用法及代碼示例
- Python NetworkX lexicographical_topological_sort用法及代碼示例
- Python NetworkX line_graph用法及代碼示例
- Python NetworkX lexicographic_product用法及代碼示例
- 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用法及代碼示例
- Python NetworkX single_source_dijkstra_path_length用法及代碼示例
- Python NetworkX from_dict_of_dicts用法及代碼示例
- Python NetworkX weisfeiler_lehman_subgraph_hashes用法及代碼示例
- Python NetworkX transitive_closure_dag用法及代碼示例
- Python NetworkX intersection用法及代碼示例
- Python NetworkX MultiGraph.size用法及代碼示例
- Python NetworkX Graph.size用法及代碼示例
注:本文由純淨天空篩選整理自networkx.org大神的英文原創作品 networkx.algorithms.centrality.local_reaching_centrality。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。