Andra Lungu created FLINK-1975:
----------------------------------

             Summary: Graph getUndirected improvement 
                 Key: FLINK-1975
                 URL: https://issues.apache.org/jira/browse/FLINK-1975
             Project: Flink
          Issue Type: Improvement
          Components: Gelly
    Affects Versions: 0.9
            Reporter: Andra Lungu
            Assignee: Andra Lungu
            Priority: Minor


The current getUndirected method uses a union and a map to add the reverse 
edges to the graph. This could be done by simply using a flatMap that adds the 
edge and its reversed version - a flatMap is less expensive than a union 
followed by a map.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to