Cross-closeness
Versión 1.0.0 (2,03 KB) por
Richard Tol
Measure of vertical proximity (siblings, cousins) in a directed graph.
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.
Citar como
Richard Tol (2025). Cross-closeness (https://la.mathworks.com/matlabcentral/fileexchange/116660-cross-closeness), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2022a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0 |
