[ https://issues.apache.org/jira/browse/FLINK-2905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14976941#comment-14976941 ]
Vasia Kalavri commented on FLINK-2905: -------------------------------------- Yes, exactly, group the edges and apply a UDF to produce a single edge. I propose we start with an implementation that "intersects" on all <src, trg, val> then and if we see the need, we could later add a version where the user can specify the intersection "key", i.e. only consider <src, trg>. > Add intersect method to Graph class > ----------------------------------- > > Key: FLINK-2905 > URL: https://issues.apache.org/jira/browse/FLINK-2905 > Project: Flink > Issue Type: New Feature > Components: Gelly > Affects Versions: 0.10 > Reporter: Martin Junghanns > Assignee: Martin Junghanns > Priority: Minor > > Currently, the Gelly Graph supports the set operations > {{Graph.union(otherGraph)}} and {{Graph.difference(otherGraph)}}. It would be > nice to have a {{Graph.intersect(otherGraph)}} method, where the resulting > graph contains all vertices and edges contained in both input graphs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)