FlowFraction(A,H)
This function calculates the centrality of a subgraph H or cycle c in a (weighted di)graph G as per the article "Loop-centrality in economic and biological networks", to appear in the Proceedings of the Sixth International Conference on Complex Networks and Their Applications, also available at https://arxiv.org/abs/1707.00890
We recall that the centrality of cycle c or subgraph H is defined as the fraction of all networks flows intercepted by c (or H), that is passing through at least once by at least one vertex of c (or H). Equivalently, this fraction asymptotically determines the number of hikes on the entire graph, which are walks left-multiples of the prime c, in the context of the semi-commutative extension of number theory valid for walks on graphs ("Algebraic Combinatorics on Trace Monoids: Extending Number Theory to Walks on Graphs", SIAM J. Discrete Math., 31(2), 1428–1453).
To compute the centralities of all subgraphs H on L vertices of a graph G, use the function SubgraphCentrality on the File Exchange (https://fr.mathworks.com/matlabcentral/fileexchange/64677).
USAGE: f = FlowFraction(A,H), A the adjacency matrix of the (weighted di)graph, H the list of vertices in the vertices or subgraph, the centrality of which is desired. Output: f the centrality of H, a fraction guaranteed to be between 0 and 1 if all entries of A are positive or nil.
Citation pour cette source
Pierre-Louis Giscard (2025). FlowFraction(A,H) (https://www.mathworks.com/matlabcentral/fileexchange/64678-flowfraction-a-h), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 |