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

Add Page Rank (from Flink Gelly) #689

Closed
p-f opened this Issue Sep 21, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@p-f
Collaborator

p-f commented Sep 21, 2017

Use page rank implementation from Gelly with wrapper classes in org.gradoop.flink.algorithms.labelpropagation.functions.

@p-f

This comment has been minimized.

Show comment
Hide comment
@p-f

p-f Sep 21, 2017

Collaborator

I am currently preparing a pull request from p-f/gradoop@91faa49, but I don't know how to handle the possible Exception thrown by org.apache.flink.graph.library.link_analysis.PageRank.run. UnaryGraphToGraphOperator.execute doesn't declare an Exception, so how should this be handled?

Collaborator

p-f commented Sep 21, 2017

I am currently preparing a pull request from p-f/gradoop@91faa49, but I don't know how to handle the possible Exception thrown by org.apache.flink.graph.library.link_analysis.PageRank.run. UnaryGraphToGraphOperator.execute doesn't declare an Exception, so how should this be handled?

@s1ck

This comment has been minimized.

Show comment
Hide comment
@s1ck

s1ck Sep 21, 2017

Member

I see, this behaves differently than LabelPropagation. You could catch it and re-throw in a RuntimeException. Sth like:

try {
  pageRank.run(graph);
} catch (Exception e) {
  throw new RuntimeException(e);
}
Member

s1ck commented Sep 21, 2017

I see, this behaves differently than LabelPropagation. You could catch it and re-throw in a RuntimeException. Sth like:

try {
  pageRank.run(graph);
} catch (Exception e) {
  throw new RuntimeException(e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment