@Test public void testSetLinkOut(){ String label = "knows"; Person p3 = fg.addVertex(Person.class); Person p4 = fg.addVertex(Person.class); Person p5 = fg.addVertex(Person.class); p3.addEdge(label, p4, Knows.class); Assert.assertTrue("An out edge of type "+label+" must exist between vertices", p3.out(label).retain(Lists.newArrayList(p4)).count() > 0); p3.setLinkOut(p5, label); Assert.assertEquals("old " + label + " edge was not removed", 0, p3.out(label).retain(Lists.newArrayList(p4)).count()); Assert.assertEquals(label + " edge was not created", 1, p3.out(label).retain(Lists.newArrayList(p5)).count()); }
protected void setLinkOut(FramedVertex vertex, String... labels) { unlinkOut(null, labels); if (vertex != null) { linkOut(vertex, labels); } }
FramedVertex extends FramedElement { protected void setLinkOut(FramedVertex vertex, String... labels) { unlinkOut(null, labels); if (vertex != null) { linkOut(vertex, labels); } } }
FramedVertex extends FramedElement { protected void setLinkOut(FramedVertex vertex, String... labels) { unlinkOut(null, labels); if (vertex != null) { linkOut(vertex, labels); } }  }
FramedVertex extends FramedElement { protected void setLinkOut(FramedVertex vertex, String... labels) { unlinkOut(null, labels); if (vertex != null) { linkOut(vertex, labels); } }  JsonObject toJson(); @Override String toString(); }
FramedVertex extends FramedElement { protected void setLinkOut(FramedVertex vertex, String... labels) { unlinkOut(null, labels); if (vertex != null) { linkOut(vertex, labels); } }  JsonObject toJson(); @Override String toString();  }