@Test public void testAddVertex() throws Exception { Person person = graph.addVertex(Person.class); assertNotNull(person); assertNotNull(person.vertex()); assertNotNull(person.vertex().id()); assertEquals("Person", person.vertex().label()); }
public <V> V addVertex(Class<V> clazz) { IFramer<Element, V> framer = registry.get(clazz); Vertex v = graph.addVertex(framer.label()); return framer.frameNew(v, this); }
FramedGraph implements AutoCloseable { public <V> V addVertex(Class<V> clazz) { IFramer<Element, V> framer = registry.get(clazz); Vertex v = graph.addVertex(framer.label()); return framer.frameNew(v, this); } }
FramedGraph implements AutoCloseable { public <V> V addVertex(Class<V> clazz) { IFramer<Element, V> framer = registry.get(clazz); Vertex v = graph.addVertex(framer.label()); return framer.frameNew(v, this); } FramedGraph(Graph graph, Package pakkage); }
FramedGraph implements AutoCloseable { public <V> V addVertex(Class<V> clazz) { IFramer<Element, V> framer = registry.get(clazz); Vertex v = graph.addVertex(framer.label()); return framer.frameNew(v, this); } 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 { public <V> V addVertex(Class<V> clazz) { IFramer<Element, V> framer = registry.get(clazz); Vertex v = graph.addVertex(framer.label()); return framer.frameNew(v, this); } 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();  }