@Test public void testGetGraphHeadsByVariables() { AsciiGraphLoader<EPGMGraphHead, EPGMVertex, EPGMEdge> asciiGraphLoader = AsciiGraphLoader.fromString("g[()],h[()]", getEPGMElementFactoryProvider()); Collection<EPGMGraphHead> graphHeadPojos = asciiGraphLoader .getGraphHeadsByVariables("g", "h"); assertEquals("Wrong number of graphs", 2, graphHeadPojos.size()); }
public Collection<G> getGraphHeadsByVariables(String... variables) { Collection<G> result = Sets.newHashSetWithExpectedSize(variables.length); for (String variable : variables) { G graphHead = getGraphHeadByVariable(variable); if (graphHead != null) { result.add(graphHead); } } return result; }
AsciiGraphLoader { public Collection<G> getGraphHeadsByVariables(String... variables) { Collection<G> result = Sets.newHashSetWithExpectedSize(variables.length); for (String variable : variables) { G graphHead = getGraphHeadByVariable(variable); if (graphHead != null) { result.add(graphHead); } } return result; } }
AsciiGraphLoader { public Collection<G> getGraphHeadsByVariables(String... variables) { Collection<G> result = Sets.newHashSetWithExpectedSize(variables.length); for (String variable : variables) { G graphHead = getGraphHeadByVariable(variable); if (graphHead != null) { result.add(graphHead); } } return result; } private  AsciiGraphLoader(GDLHandler gdlHandler,
                           ElementFactoryProvider<G, V, E> elementFactoryProvider); }
AsciiGraphLoader { public Collection<G> getGraphHeadsByVariables(String... variables) { Collection<G> result = Sets.newHashSetWithExpectedSize(variables.length); for (String variable : variables) { G graphHead = getGraphHeadByVariable(variable); if (graphHead != null) { result.add(graphHead); } } return result; } private  AsciiGraphLoader(GDLHandler gdlHandler,
                           ElementFactoryProvider<G, V, E> elementFactoryProvider); static AsciiGraphLoader<G, V, E> fromString(String asciiGraph,
                                       ElementFactoryProvider<G, V, E> elementFactoryProvider); static AsciiGraphLoader<G, V, E> fromFile(String fileName,
                                     ElementFactoryProvider<G, V, E> elementFactoryProvider); static AsciiGraphLoader<G, V, E> fromStream(InputStream inputStream,
                                       ElementFactoryProvider<G, V, E> elementFactoryProvider); void appendFromString(String asciiGraph); Collection<G> getGraphHeads(); G getGraphHeadByVariable(String variable); Collection<G> getGraphHeadsByVariables(String... variables); Collection<V> getVertices(); V getVertexByVariable(String variable); Collection<V> getVerticesByVariables(String... variables); Collection<V> getVerticesByGraphIds(GradoopIdSet graphIds); Collection<V> getVerticesByGraphVariables(String... graphVariables); Collection<E> getEdges(); E getEdgeByVariable(String variable); Collection<E> getEdgesByVariables(String... variables); Collection<E> getEdgesByGraphIds(GradoopIdSet graphIds); Collection<E> getEdgesByGraphVariables(String... variables); Map<String, G> getGraphHeadCache(); Map<String, V> getVertexCache(); Map<String, E> getEdgeCache(); }
AsciiGraphLoader { public Collection<G> getGraphHeadsByVariables(String... variables) { Collection<G> result = Sets.newHashSetWithExpectedSize(variables.length); for (String variable : variables) { G graphHead = getGraphHeadByVariable(variable); if (graphHead != null) { result.add(graphHead); } } return result; } private  AsciiGraphLoader(GDLHandler gdlHandler,
                           ElementFactoryProvider<G, V, E> elementFactoryProvider); static AsciiGraphLoader<G, V, E> fromString(String asciiGraph,
                                       ElementFactoryProvider<G, V, E> elementFactoryProvider); static AsciiGraphLoader<G, V, E> fromFile(String fileName,
                                     ElementFactoryProvider<G, V, E> elementFactoryProvider); static AsciiGraphLoader<G, V, E> fromStream(InputStream inputStream,
                                       ElementFactoryProvider<G, V, E> elementFactoryProvider); void appendFromString(String asciiGraph); Collection<G> getGraphHeads(); G getGraphHeadByVariable(String variable); Collection<G> getGraphHeadsByVariables(String... variables); Collection<V> getVertices(); V getVertexByVariable(String variable); Collection<V> getVerticesByVariables(String... variables); Collection<V> getVerticesByGraphIds(GradoopIdSet graphIds); Collection<V> getVerticesByGraphVariables(String... graphVariables); Collection<E> getEdges(); E getEdgeByVariable(String variable); Collection<E> getEdgesByVariables(String... variables); Collection<E> getEdgesByGraphIds(GradoopIdSet graphIds); Collection<E> getEdgesByGraphVariables(String... variables); Map<String, G> getGraphHeadCache(); Map<String, V> getVertexCache(); Map<String, E> getEdgeCache();  }