use of org.neo4j.driver.internal.InternalPath in project cypher-for-gremlin by opencypher.
the class GremlinCypherValueConverter method toCypherPath.
@SuppressWarnings("unchecked")
private static Value toCypherPath(List p) {
boolean isNode = true;
Entity[] objects = new Entity[p.size()];
for (int i = 0; i < p.size(); i++) {
if (isNode) {
objects[i] = toCypherNode((Map<?, ?>) p.get(i));
} else {
objects[i] = toCypherRelationship((Map<?, ?>) p.get(i));
}
isNode = !isNode;
}
return new InternalPath(objects).asValue();
}
Aggregations