[
https://issues.apache.org/jira/browse/FLINK-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14590552#comment-14590552
]
ASF GitHub Bot commented on FLINK-1520:
---------------------------------------
Github user vasia commented on a diff in the pull request:
https://github.com/apache/flink/pull/847#discussion_r32672727
--- Diff: docs/libs/gelly_guide.md ---
@@ -102,6 +102,15 @@ DataSet<Tuple3<String, String, Double>> edgeTuples =
env.readCsvFile("path/to/ed
Graph<String, Long, Double> graph = Graph.fromTupleDataSet(vertexTuples,
edgeTuples, env);
{% endhighlight %}
+* from a CSV file with three fields and an optional CSV file with 2
fields. In this case, Gelly will convert each row from the first 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 will be the edge value. Equivalently, each
row from the second CSV file will be converted to a `Vertex`, where the first
field will be the vertex ID and the second field will be the vertex value. A
types() method is called on the GraphCsvReader object returned by
fromCsvReader() to inform the CsvReader of the types of the fields :
--- End diff --
It seems to me that the first argument is the vertex file and the second is
the edges file.
> Read edges and vertices from CSV files
> --------------------------------------
>
> Key: FLINK-1520
> URL: https://issues.apache.org/jira/browse/FLINK-1520
> Project: Flink
> Issue Type: New Feature
> Components: Gelly
> Reporter: Vasia Kalavri
> Assignee: Shivani Ghatge
> Priority: Minor
> Labels: easyfix, newbie
>
> Add methods to create Vertex and Edge Datasets directly from CSV file inputs.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)