Standard centrality measures are for horizontal distance. On a directed graph, outcloseness measures ancestry and incloseness measures descent. Cross-closeness measures vertical distances, that is, shared ancestry.
There are three functions.
Crosscloseness.m returns the average cross-closeness of all nodes to selected nodes in a graph. The average is the generalized average for parameter h. If h=1, this is the arithmatic average, if h=-1, it is the harmonic average.
The other two are support functions.
Crossdistance.m returns the matrix of distances between all nodes.
Horzdist.m returns the distance between two nodes. Parameter d sets the depth: for d=1, only siblings are considered. For d=2, siblings and first cousins are considered. And so on.
引用格式
Richard Tol (2024). Cross-closeness (https://www.mathworks.com/matlabcentral/fileexchange/116660-cross-closeness), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2022a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |