Skip to content
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

[GAE/WCC] Fix WCC' implementation on undirected graph #2586

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

songqing
Copy link
Contributor

@songqing songqing commented Apr 3, 2023

What do these changes do?

There are multiple implementations of WCC, however, some implementations seem only work on directed graph, these implementations will not cause an error on undirected graph, but have some small bad performance.

I see networkX only support WCC on directed graph, but, it seems our platform can use WCC both on directed and undirected graph with a small change and have no performance impact, and that's the PR does.
f1
f2

Related issue number

Fixes

@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2023

Codecov Report

Merging #2586 (b3074af) into main (8b55f42) will increase coverage by 32.67%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2586       +/-   ##
===========================================
+ Coverage   39.90%   72.58%   +32.67%     
===========================================
  Files          88       88               
  Lines        9838     9838               
===========================================
+ Hits         3926     7141     +3215     
+ Misses       5912     2697     -3215     

see 47 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b55f42...b3074af. Read the comment docs.

Copy link
Collaborator

@sighingnow sighingnow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. But we still keep to keep the compatibility check in Python, as it actually use the version defined the libgrape-lite: https://github.com/alibaba/libgrape-lite/blob/master/examples/analytical_apps/wcc/wcc.h

@sighingnow sighingnow merged commit fd0b7f2 into alibaba:main Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants