All-pairs Shortest Dynamic Path Length Algorithm

Algorithm computing the shortest-dynamic-path-length between all pairs of nodes in a dynamic network

Al momento, stai seguendo questo contributo

This function computes the Shortest Dynamic Path Length defined in the paper "Understanding and Modeling the Small-World Phenomenon in Dynamic Networks - AD. Nguyen et al - MSWIM 2012" between all pairs of nodes in a dynamic network.

Inputs:
- states: the temporal graphs under form of 3D-matrix in which the 1st and 2nd denotes node's IDs and the 3rd dimension denotes the time. states(:,:,t) is the network adjacency matrix at time t (i.e. state(i,j,t) = 1 if i is connected to j at time t and 0 otherwise). state(i,i,t) = 1 for all i. The shortest path lengths are calculated from the beginning of states.
- find_path: find the shortest paths if a non zero value was entered.

Outputs:
- d: the average shortest dynamic path length of the network.
- D: the matrix containing the shortest dynamic path lengths between all pairs of nodes.
- E: the list of encounters, if find_path is not equal to 0. The function findAllPaths uses this to find all the shortest paths between all pairs of nodes.

Please refer to the paper for more details.

Cita come

Anh-Dung Nguyen (2026). All-pairs Shortest Dynamic Path Length Algorithm (https://it.mathworks.com/matlabcentral/fileexchange/39739-all-pairs-shortest-dynamic-path-length-algorithm), MATLAB Central File Exchange. Recuperato .

Categorie

Scopri di più su Networks in Help Center e MATLAB Answers

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.3.0.0

updating shortest_path_distance.m

1.1.0.0

adding findAllPath.m, bfs.m

1.0.0.0