[ https://issues.apache.org/jira/browse/FLINK-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14945298#comment-14945298 ]
ASF GitHub Bot commented on FLINK-2785: --------------------------------------- Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/1205#discussion_r41287202 --- Diff: docs/libs/gelly_guide.md --- @@ -194,6 +194,27 @@ val edgeTuples = env.readCsvFile[String, String, Double]("path/to/edge/input") val graph = Graph.fromTupleDataSet(vertexTuples, edgeTuples, env) {% endhighlight %} + +* from a CSV file of Edge data and an optional CSV file of Vertex data. In this case, Gelly will convert each row from the Edge CSV file to an `Edge`, where the first field will be the source ID, the second field will be the target ID and the third field (if present) will be the edge value. Equivalently, each row from the optional Vertex CSV file will be converted to a `Vertex`, where the first field will be the vertex ID and the second field (if present) will be the vertex value. +If the vertices have no associated value, set the `vertexValue` parameter to `false`. If the edges have no associated value, set the `edgeValue` parameter to `false`. --- End diff -- The role of `vertexValues` in creating the vertex set from the edges is not discussed here. > Implement Graph's fromCsvReader in Gelly-Scala > ---------------------------------------------- > > Key: FLINK-2785 > URL: https://issues.apache.org/jira/browse/FLINK-2785 > Project: Flink > Issue Type: Sub-task > Components: Gelly > Reporter: Vasia Kalavri > Assignee: Vasia Kalavri > Priority: Minor > > Graphs's {{fromCsvReader}} method is currently missing from the Gelly Scala > API. It cannot be implemented as a simple wrapper over the Java method, > because the Java method returns a {{GraphCsvReader}}, which in return creates > a Graph after specifying types with appropriate methods. The Scala version of > the method can be more nicely implemented using the {{ScalaCsvInputFormat}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)