@Test public void pathsAreTranslated() { Iterable<PropertyContainer> path = newArrayList(node, relationship, otherNode); TinkerGraphUtil tgu = new TinkerGraphUtil(graph, curieUtil); tgu.addPath(path); assertThat(graph.getVertices(), is(IsIterableWithSize.<Vertex>iterableWithSize(2))); assertThat(graph.getEdges(), is(IsIterableWithSize.<Edge>iterableWithSize(1))); }
public void addPath(Iterable<PropertyContainer> path) { for (PropertyContainer container : path) { addElement(container); } }
TinkerGraphUtil { public void addPath(Iterable<PropertyContainer> path) { for (PropertyContainer container : path) { addElement(container); } } }
TinkerGraphUtil { public void addPath(Iterable<PropertyContainer> path) { for (PropertyContainer container : path) { addElement(container); } } @Inject  TinkerGraphUtil(CurieUtil curieUtil);  TinkerGraphUtil(Graph graph, CurieUtil curieUtil); }
TinkerGraphUtil { public void addPath(Iterable<PropertyContainer> path) { for (PropertyContainer container : path) { addElement(container); } } @Inject  TinkerGraphUtil(CurieUtil curieUtil);  TinkerGraphUtil(Graph graph, CurieUtil curieUtil); CurieUtil getCurieUtil(); Graph getGraph(); void setGraph(Graph graph); Element addElement(PropertyContainer container); void addPath(Iterable<PropertyContainer> path); Element addElement(Element element); void addGraph(Graph addition); Graph combineGraphs(Graph graph2); Graph resultToGraph(Result result); static Optional<T> getProperty(Element container, String property, Class<T> type); static Collection<T> getProperties(Element container, String property, Class<T> type); void project(Collection<String> projection); }
TinkerGraphUtil { public void addPath(Iterable<PropertyContainer> path) { for (PropertyContainer container : path) { addElement(container); } } @Inject  TinkerGraphUtil(CurieUtil curieUtil);  TinkerGraphUtil(Graph graph, CurieUtil curieUtil); CurieUtil getCurieUtil(); Graph getGraph(); void setGraph(Graph graph); Element addElement(PropertyContainer container); void addPath(Iterable<PropertyContainer> path); Element addElement(Element element); void addGraph(Graph addition); Graph combineGraphs(Graph graph2); Graph resultToGraph(Result result); static Optional<T> getProperty(Element container, String property, Class<T> type); static Collection<T> getProperties(Element container, String property, Class<T> type); void project(Collection<String> projection);  }