Github user NicoK commented on a diff in the pull request: https://github.com/apache/flink/pull/4346#discussion_r129231293 --- Diff: flink-libraries/flink-gelly-examples/src/main/java/org/apache/flink/graph/drivers/parameter/Simplify.java --- @@ -109,21 +109,23 @@ public Ordering getValue() { * @return output graph * @throws Exception on error */ - public <T extends Comparable<T>> Graph<T, NullValue, NullValue> simplify(Graph<T, NullValue, NullValue> graph) + public <T extends Comparable<T>> Graph<T, NullValue, NullValue> simplify(Graph<T, NullValue, NullValue> graph, int parallelism) throws Exception { - switch (value) { case DIRECTED: graph = graph - .run(new org.apache.flink.graph.asm.simple.directed.Simplify<T, NullValue, NullValue>()); + .run(new org.apache.flink.graph.asm.simple.directed.Simplify<T, NullValue, NullValue>() + .setParallelism(parallelism)); break; case UNDIRECTED: graph = graph - .run(new org.apache.flink.graph.asm.simple.undirected.Simplify<T, NullValue, NullValue>(false)); + .run(new org.apache.flink.graph.asm.simple.undirected.Simplify<T, NullValue, NullValue>(false) + .setParallelism(parallelism)); break; case UNDIRECTED_CLIP_AND_FLIP: graph = graph - .run(new org.apache.flink.graph.asm.simple.undirected.Simplify<T, NullValue, NullValue>(true)); + .run(new org.apache.flink.graph.asm.simple.undirected.Simplify<T, NullValue, NullValue>(true) + .setParallelism(parallelism)); --- End diff -- ...and here
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---