@Override public LogicalGraph transformGraphHead( TransformationFunction<GraphHead> graphHeadTransformationFunction) { return transform(graphHeadTransformationFunction, null, null); }
@Override public LogicalGraph transformVertices( TransformationFunction<Vertex> vertexTransformationFunction) { return transform(null, vertexTransformationFunction, null); }
@Override public LogicalGraph transformEdges( TransformationFunction<Edge> edgeTransformationFunction) { return transform(null, null, edgeTransformationFunction); }
@Override public LogicalGraph transformGraphHead( TransformationFunction<GraphHead> graphHeadTransformationFunction) { return transform(graphHeadTransformationFunction, null, null); }
@Override public LogicalGraph transformEdges( TransformationFunction<Edge> edgeTransformationFunction) { return transform(null, null, edgeTransformationFunction); }
@Override public LogicalGraph transformVertices( TransformationFunction<Vertex> vertexTransformationFunction) { return transform(null, vertexTransformationFunction, null); }
/** * Tests the data in the resulting graph. * * @throws Exception */ @Test public void testDataEquality() throws Exception { FlinkAsciiGraphLoader loader = getLoaderFromString(testGraphString); LogicalGraph original = loader.getLogicalGraphByVariable("g0"); LogicalGraph expected = loader.getLogicalGraphByVariable("g01"); LogicalGraph result = original .transform( TransformationTest::transformGraphHead, TransformationTest::transformVertex, TransformationTest::transformEdge ); collectAndAssertTrue(result.equalsByData(expected)); }
edge -> edge.getLabel().toLowerCase().equals(knows)) .transform(
.transform( TransformationTest::transformGraphHead, TransformationTest::transformVertex,
LogicalGraph output = f .execute(searchGraph, patternGraph) .transform((gh, plain) -> { gh.setLabel("Combined"); return gh;