Skip to content
Discussion options

You must be logged in to vote

g.V(4120).outE().where(inV().hasId(20544)).values('prop') if you know there's only one edge between these two vertices.

You can also use RelationIdentifier::toString method to construct the edge out of this representation. E.g.

public class App {
    public static void main(String[] args) {
        org.janusgraph.graphdb.relations.RelationIdentifier id = new RelationIdentifier(4120, 10261, 27651, 20544);
        System.out.println(id);
    }
}

which would print out the result: lc3-36g-7x1-fuo.

So you could use g.E("lc3-36g-7x1-fuo") to find this edge.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@w158937299
Comment options

@li-boxuan
Comment options

Answer selected by porunov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants