@Test public void testIn() throws Exception { List<Person> result = graph.V(Person.class).has("name", "bob").in("friend", Person.class).toList(); assertEquals(1, result.size()); assertEquals("alice", result.get(0).getName()); assertThat(graph.v(alice.id(), Person.class).getFriends(), hasItem(hasProperty("name", equalTo("bob")))); }
@SuppressWarnings("unchecked") public <V> FramedGraphTraversal<V> V(Class<V> clazz) { return new FramedGraphTraversal(traversal.V(), this).labels(clazz, P.within(registry.labels(clazz))); }
FramedGraph implements AutoCloseable { @SuppressWarnings("unchecked") public <V> FramedGraphTraversal<V> V(Class<V> clazz) { return new FramedGraphTraversal(traversal.V(), this).labels(clazz, P.within(registry.labels(clazz))); } }
FramedGraph implements AutoCloseable { @SuppressWarnings("unchecked") public <V> FramedGraphTraversal<V> V(Class<V> clazz) { return new FramedGraphTraversal(traversal.V(), this).labels(clazz, P.within(registry.labels(clazz))); } FramedGraph(Graph graph, Package pakkage); }
FramedGraph implements AutoCloseable { @SuppressWarnings("unchecked") public <V> FramedGraphTraversal<V> V(Class<V> clazz) { return new FramedGraphTraversal(traversal.V(), this).labels(clazz, P.within(registry.labels(clazz))); } FramedGraph(Graph graph, Package pakkage); V addVertex(Class<V> clazz); V addVertex(Class<V> clazz, Object id); @SuppressWarnings("unchecked") FramedGraphTraversal<V> V(Class<V> clazz); @SuppressWarnings("unchecked") V v(Object id); @SuppressWarnings("unchecked") V v(Object id, Class<V> clazz); F frame(E e); F frame(E e, Class<F> clazz); List<F> frame(Iterator<E> it, Class<F> clazz); Transaction tx(); Variables variables(); Configuration configuration(); Features features(); Graph graph(); @Override void close(); }
FramedGraph implements AutoCloseable { @SuppressWarnings("unchecked") public <V> FramedGraphTraversal<V> V(Class<V> clazz) { return new FramedGraphTraversal(traversal.V(), this).labels(clazz, P.within(registry.labels(clazz))); } FramedGraph(Graph graph, Package pakkage); V addVertex(Class<V> clazz); V addVertex(Class<V> clazz, Object id); @SuppressWarnings("unchecked") FramedGraphTraversal<V> V(Class<V> clazz); @SuppressWarnings("unchecked") V v(Object id); @SuppressWarnings("unchecked") V v(Object id, Class<V> clazz); F frame(E e); F frame(E e, Class<F> clazz); List<F> frame(Iterator<E> it, Class<F> clazz); Transaction tx(); Variables variables(); Configuration configuration(); Features features(); Graph graph(); @Override void close();  }