[GitHub] incubator-tinkerpop pull request #332: if there is no edge label in the Grap...

2016-06-08 Thread analytically
Github user analytically commented on a diff in the pull request:

https://github.com/apache/incubator-tinkerpop/pull/332#discussion_r66219778
  
--- Diff: 
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphml/GraphMLReader.java
 ---
@@ -187,7 +187,9 @@ public void readGraph(final InputStream 
graphInputStream, final Graph graphToWri
 } else if (elementName.equals(GraphMLTokens.EDGE)) {
 final Object[] propsAsArray = 
edgeProps.entrySet().stream().flatMap(e -> Stream.of(e.getKey(), 
e.getValue())).toArray();
 final Object[] propsReady = 
edgeFeatures.willAllowId(edgeId) ? ElementHelper.upsert(propsAsArray, T.id, 
edgeId) : propsAsArray;
-edgeOutVertex.addEdge(edgeLabel, edgeInVertex, 
propsReady);
+
+   final String currentEdgeLabel = 
Optional.ofNullable(edgeLabel).orElse(Edge.DEFAULT_LABEL);
+edgeOutVertex.addEdge(currentEdgeLabel, 
edgeInVertex, propsReady);
--- End diff --

spacing a little off here


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-tinkerpop pull request #332: if there is no edge label in the Grap...

2016-06-07 Thread SergeVil
Github user SergeVil closed the pull request at:

https://github.com/apache/incubator-tinkerpop/pull/332


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-tinkerpop pull request #332: if there is no edge label in the Grap...

2016-06-07 Thread SergeVil
GitHub user SergeVil opened a pull request:

https://github.com/apache/incubator-tinkerpop/pull/332

if there is no edge label in the GraphML file, then use Edge.DEFAULT

As per suggestion in 
https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/gremlin-users/56CI2PTWueg

I'm commiting the change

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/SergeVil/incubator-tinkerpop tp31-graphml

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-tinkerpop/pull/332.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #332


commit 73427e2e4e99d5332cc82e6e1f67295a91df05b6
Author: Serge Vilvovsky 
Date:   2016-06-07T17:17:55Z

if there is no edge label in the GraphML file, then use Edge.DEFAULT




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---