[ https://issues.apache.org/jira/browse/FLINK-5152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15692732#comment-15692732 ]
Vasia Kalavri commented on FLINK-5152: -------------------------------------- Hi [~otherwise777], this is an example of _weighted_ shortest paths. The edge value is added to the message in the scatter function, thus it cannot be NullValue. If you need a shortest paths implementation that ignores edge values, it should be easy to modify this example to do that. > accepting NullValue for EV in Gelly examples > -------------------------------------------- > > Key: FLINK-5152 > URL: https://issues.apache.org/jira/browse/FLINK-5152 > Project: Flink > Issue Type: Improvement > Components: Gelly > Affects Versions: 1.1.3 > Reporter: wouter ligtenberg > Fix For: 1.1.3 > > Original Estimate: 0.5h > Remaining Estimate: 0.5h > > In this gelly example [1] an EdgeValue of Double is required but never used, > wouldn't it be better to change this into a NullValue? I create a lot of data > without Edge Values and it seems to me that it's more efficient > I'd like to hear your thoughts on this > [1] > https://github.com/apache/flink/blob/master/flink-libraries/flink-gelly-examples/src/main/java/org/apache/flink/graph/examples/SingleSourceShortestPaths.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)