[
https://issues.apache.org/jira/browse/TINKERPOP-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15136366#comment-15136366
]
Daniel Kuppitz commented on TINKERPOP-1134:
-------------------------------------------
The fix/improvement for {{ScriptElementFactory}} is:
{code}
public Edge edge(final Vertex out, final Vertex in, final String label) {
final String edgeId = String.join("->", in.id().toString(),
out.id().toString());
return out.addEdge(label, in, T.id, edgeId);
}
{code}
> Edge IDs in HadoopGraph
> -----------------------
>
> Key: TINKERPOP-1134
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1134
> Project: TinkerPop
> Issue Type: Improvement
> Components: hadoop, process
> Affects Versions: 3.0.0-incubating
> Reporter: Daniel Kuppitz
>
> Edge IDs in Hadoop graph have to be consistent. If an out-edge's id differs
> from its respective in-edge id, some traversals will fail. This is especially
> a problem in user generated input files.
> I know how to improve that for {{ScriptInputFormat}}, but what if a user
> generates a custom GraphSON file? Do we want him to take care of the edge ids
> or can we ignore edge ids in HadoopGraph?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)