Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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