如何编写以下代码来取消 Tinkerpop v3?
public interface Cat {
@Relation(label="enemy")
public void addEnemy(Mouse mouse);
@Relation(label="enemy")
public Collection getEnemies();
}
FramesManager manager = new FramesManager(graph);
Cat tom = manager.frame(graph.getVertex(1), Cat.class);
Mouse jerry = manager.frame(graph.getVertex(2), Mouse.class);
tom.addEnemy(jerry);
我试图找到一些例子,但我没有运气。
谢谢, 塞尔索