public class Simplify extends Object implements Parameter<Simplify.Ordering>
This Parameter
indicates whether to simplify the graph and if the
graph should be directed or undirected.
Modifier and Type | Class and Description |
---|---|
static class |
Simplify.Ordering
Whether and how to simplify the graph.
|
Constructor and Description |
---|
Simplify(ParameterizedBase owner)
Add this parameter to the list of parameters stored by owner.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(ParameterTool parameterTool)
Read and parse the parameter value from command-line arguments.
|
String |
getShortString() |
String |
getUsage()
An informal usage string.
|
Simplify.Ordering |
getValue()
Get the parameter value.
|
boolean |
isHidden()
A hidden parameter is parsed from the command-line configuration but is
not printed in the usage string.
|
<T extends Comparable<T>> |
simplify(Graph<T,NullValue,NullValue> graph,
int parallelism)
Simplify the given graph based on the configured value.
|
public Simplify(ParameterizedBase owner)
owner
- the Parameterized
using this Parameter
public String getUsage()
Parameter
Optional parameters are enclosed by "[" and "]".
Generic values are represented by all-caps with specific values enclosed by "<" and ">".
getUsage
in interface Parameter<Simplify.Ordering>
public boolean isHidden()
Parameter
isHidden
in interface Parameter<Simplify.Ordering>
public void configure(ParameterTool parameterTool)
Parameter
configure
in interface Parameter<Simplify.Ordering>
parameterTool
- parameter parserpublic Simplify.Ordering getValue()
Parameter
getValue
in interface Parameter<Simplify.Ordering>
public <T extends Comparable<T>> Graph<T,NullValue,NullValue> simplify(Graph<T,NullValue,NullValue> graph, int parallelism) throws Exception
T
- graph key typegraph
- input graphException
- on errorpublic String getShortString()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.