Skip to content

Fast parallel algorithm for diameter of undirected unweighted real-world graphs - #97

Open
Rajendraprasad7 wants to merge 1 commit into
networkx:mainfrom
Rajendraprasad7:feature/parallel-diameter
Open

Rajendraprasad7 wants to merge 1 commit into
networkx:mainfrom
Rajendraprasad7:feature/parallel-diameter

Conversation

@Rajendraprasad7

Copy link
Copy Markdown

This PR implements an embarrassingly parallel algorithm for calculating the diameter of real-world graphs using the Iterative Fringe Upper Bound (iFub4S) algorithm. (Ref issue#82 )

Reference
On computing the diameter of real-world undirected graphs
DOI: 10.1016/j.tcs.2012.09.018

The iFub4S algorithm first selects an approximate "central" node using the 4-sweep heuristic. The 4-sweep method starts from a random node, finds its farthest node, then repeats this process four times to approximate a central node. A BFS tree is then rooted at this node, and eccentricities are computed layer-wise in parallel. If the max eccentricity from a layer exceeds twice the layer index, the algorithm terminates and returns the diameter; otherwise, it proceeds further to the next layer. iFub4S is observed to compute diameters efficiently for real-world graphs.

Refer this PR for earlier discussion on this algorithm.

@Rajendraprasad7 Rajendraprasad7 changed the title Fast parallel algorithm for undirected unweighted real-world graphs Fast parallel algorithm for diameter of undirected unweighted real-world graphs Mar 24, 2025
@Schefflera-Arboricola Schefflera-Arboricola added the type: Enhancement New feature or request label Mar 25, 2025

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: Enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

2 participants