Skip to content

Conversation

Rajendraprasad7
Copy link

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
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