@Override public DataSet<Boolean> execute(LogicalGraph firstGraph, LogicalGraph secondGraph) { GraphCollectionFactory collectionFactory = firstGraph.getConfig() .getGraphCollectionFactory(); return collectionEquality .execute(collectionFactory.fromGraph(firstGraph), collectionFactory.fromGraph(secondGraph)); }
@Override public DataSet<Boolean> execute(LogicalGraph firstGraph, LogicalGraph secondGraph) { GraphCollectionFactory collectionFactory = firstGraph.getConfig() .getGraphCollectionFactory(); return collectionEquality .execute(collectionFactory.fromGraph(firstGraph), collectionFactory.fromGraph(secondGraph)); } }
@Override public GraphCollection getGraphCollection() throws IOException { return config.getGraphCollectionFactory().fromGraph(getLogicalGraph()); } }
@Override public GraphCollection getGraphCollection() throws IOException { return config.getGraphCollectionFactory().fromGraph(getLogicalGraph()); } }
@Override public GraphCollection getGraphCollection() { return config.getGraphCollectionFactory().fromGraph(getLogicalGraph()); } }
@Override public GraphCollection getGraphCollection() throws IOException { return getConfig().getGraphCollectionFactory().fromGraph(getLogicalGraph()); } }
/** * Prints the logical graph to the standard output. * * @param logicalGraph The logical graph that is supposed to be printed. * @throws Exception Forwarded from flink execute. */ public static void print(LogicalGraph logicalGraph) throws Exception { GraphCollectionFactory collectionFactory = logicalGraph.getConfig().getGraphCollectionFactory(); GraphCollection graphCollection = collectionFactory.fromGraph(logicalGraph); print(graphCollection); }
@Override public GraphCollection getGraphCollection() { return getConfig().getGraphCollectionFactory().fromGraph(getLogicalGraph()); } }
@Override public GraphCollection getGraphCollection() throws IOException { return getConfig().getGraphCollectionFactory().fromGraph(getLogicalGraph()); } }
@Override public GraphCollection getGraphCollection() { return getConfig().getGraphCollectionFactory().fromGraph(getLogicalGraph()); } }
/** * add graph to output * @param caption output caption * @param graph graph */ public void add(String caption, LogicalGraph graph) { add(caption, graph.getConfig().getGraphCollectionFactory().fromGraph(graph)); }
@Override public void write(LogicalGraph logicalGraph, boolean overwrite) throws IOException { write(logicalGraph.getConfig().getGraphCollectionFactory().fromGraph(logicalGraph), overwrite); }
/** * {@inheritDoc} */ @Override public void write(LogicalGraph logicalGraph, boolean overwrite) throws IOException { write(logicalGraph.getConfig().getGraphCollectionFactory().fromGraph(logicalGraph), overwrite); }
/** * Prints the logical graph to the standard output. * * @param logicalGraph The logical graph that is supposed to be printed. * @throws Exception Forwarded from flink execute. */ public static void print(LogicalGraph logicalGraph) throws Exception { GraphCollectionFactory collectionFactory = logicalGraph.getConfig().getGraphCollectionFactory(); GraphCollection graphCollection = collectionFactory.fromGraph(logicalGraph); print(graphCollection); }
@Override public void write(LogicalGraph logicalGraph, boolean overwrite) throws IOException { write(getFlinkConfig().getGraphCollectionFactory().fromGraph(logicalGraph), overwrite); }
/** * Test writing and reading the given graph to and from IndexedCSV. * * @param tmpPath path to write csv * @param input logical graph * @throws Exception if the execution or IO fails. */ private void checkIndexedCSVWrite(String tmpPath, LogicalGraph input) throws Exception { checkIndexedCSVWrite(tmpPath, input.getConfig().getGraphCollectionFactory().fromGraph(input)); }
public static void printUndirectedCanonicalAdjacencyMatrix(LogicalGraph graph) throws Exception { printUndirectedCanonicalAdjacencyMatrix(graph.getConfig().getGraphCollectionFactory() .fromGraph(graph)); }
public static void printDirectedCanonicalAdjacencyMatrix(LogicalGraph graph) throws Exception { printDirectedCanonicalAdjacencyMatrix(graph.getConfig().getGraphCollectionFactory() .fromGraph(graph)); }
/** * Test writing and reading the given graph to and from CSV * * @param tmpPath path to write csv * @param input logical graph * @throws Exception if the execution or IO fails. */ private void checkCSVWrite(String tmpPath, LogicalGraph input) throws Exception { checkCSVWrite(tmpPath, input.getConfig().getGraphCollectionFactory().fromGraph(input)); }
@Test public void testFromGraphMethod() throws Exception { GraphCollection expected = loader.getGraphCollectionByVariables("g0"); GraphCollection result = factory.fromGraph(loader.getLogicalGraphByVariable("g0")); collectAndAssertTrue(expected.equalsByGraphElementData(result)); }