How to get InVertex and OutVertex of an edge without annotations?

7 views
Skip to first unread message

Alexandr Porunov

unread,
Mar 22, 2018, 6:49:55 PM3/22/18
to Ferma List
Hello,

I cannot use Annotations right now. I have a simple edge:


public class Knows extends AbstractEdgeFrame {
}


I would like to be able to retrieve InVertex and OutVertex from this edge.

I.e. something like this:


Knows knows = person.getFriend();
Person friend = knows.getInVertex() // or getFriendVertex();


There is no getInVertex of course, but I would like to make such method without using @InVertex annotation. Is it possible?

Best regards,
Alexandr
Reply all
Reply to author
Forward
0 new messages