[FLINK-2714] [Gelly] Copy triangle counting logic from EnumTrianglesOpt.java to Gelly library.#1250
[FLINK-2714] [Gelly] Copy triangle counting logic from EnumTrianglesOpt.java to Gelly library.#1250ssaumitra wants to merge 3 commits intoapache:masterfrom ssaumitra:FLINK_2714
Conversation
…to Gelly library. Also reorganizing classes to use Gelly's Graph APIs.
There was a problem hiding this comment.
Just FYI, I am referring to vertices of Triad and edgesWithDegrees as V1 and V2. And vertices of edge as 0 and 1.
IMHO, org.apache.flink.graph.Edge can also have static variables V1, V2 so that group operators are more readable.
|
Hi @ssaumitra! Thanks a lot for the pull request, it looks good. |
|
It's good idea. In my opinion, if we provide TriangleEnumerator as a library function, TriangleCounter would be trivial extension to it (map 1, reduce a+b). So would it be required to add it in library? |
|
Yes @ssaumitra, if we have the enumerator, then it's a matter of calling a |
|
Fair enough. I will make this change in my pull request then. Can you please edit the JIRA too? So that updated pull request and JIRA title stay relevant? |
|
Sure, will do! Thank you! |
…d be implemented.
|
I have converted it to TriangleEnumerator now. |
There was a problem hiding this comment.
My bad, I was supposed to optimise them,
|
Hi @ssaumitra, |
|
@vasia I have updated it. Please have a look. Also should I be worried about Travis build failure? Looks like it's failing on master too, |
|
Thanks a lot for the quick update @ssaumitra! It looks good now :) |
|
I will add a description in the docs, squash the commits, and merge this. |
update test to get the directed graph as input This closes apache#1250
update test to get the directed graph as input This closes apache#1250
update test to get the directed graph as input This closes apache#1250
Also reorganizing classes to use Gelly's Graph APIs.