[ https://issues.apache.org/jira/browse/FLINK-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14597434#comment-14597434 ]
ASF GitHub Bot commented on FLINK-2093: --------------------------------------- Github user vasia commented on a diff in the pull request: https://github.com/apache/flink/pull/818#discussion_r33026720 --- Diff: flink-staging/flink-gelly/src/main/java/org/apache/flink/graph/Graph.java --- @@ -1234,6 +1248,17 @@ public void coGroup(Iterable<Edge<K, EV>> edge, Iterable<Edge<K, EV>> edgeToBeRe } /** + * Performs Difference on the vertex and edge sets of the input graphs + * removes common vertices and edges. If a source/target vertex is removed, its corresponding edge will also be removed + * @param graph the graph to perform difference with + * @return a new graph where the common vertices and edges have been removed + */ + public Graph<K,VV,EV> difference(Graph<K,VV,EV> graph) throws java.lang.Exception{ --- End diff -- why the `throws` declaration? > Add a difference method to Gelly's Graph class > ---------------------------------------------- > > Key: FLINK-2093 > URL: https://issues.apache.org/jira/browse/FLINK-2093 > Project: Flink > Issue Type: New Feature > Components: Gelly > Affects Versions: 0.9 > Reporter: Andra Lungu > Assignee: Shivani Ghatge > Priority: Minor > > This method will compute the difference between two graphs, returning a new > graph containing the vertices and edges that the current graph and the input > graph don't have in common. -- This message was sent by Atlassian JIRA (v6.3.4#6332)