Package com.jgalgo
Enum Graph.Builder.Hint
- java.lang.Object
-
- java.lang.Enum<Graph.Builder.Hint>
-
- com.jgalgo.Graph.Builder.Hint
-
- All Implemented Interfaces:
Serializable
,Comparable<Graph.Builder.Hint>
- Enclosing interface:
- Graph.Builder
public static enum Graph.Builder.Hint extends Enum<Graph.Builder.Hint>
Hints for a graph builder.Hints do not change the behavior of the graphs built by this builder, by may affect performance.
- Author:
- Barak Ugav
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FastEdgeLookup
The graph should support fast edge lookup viaGraph.getEdge(int, int)
FastEdgeRemoval
The graph should support fast edge removal viaGraph.removeEdge(int)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Graph.Builder.Hint
valueOf(String name)
Returns the enum constant of this type with the specified name.static Graph.Builder.Hint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FastEdgeRemoval
public static final Graph.Builder.Hint FastEdgeRemoval
The graph should support fast edge removal viaGraph.removeEdge(int)
-
FastEdgeLookup
public static final Graph.Builder.Hint FastEdgeLookup
The graph should support fast edge lookup viaGraph.getEdge(int, int)
-
-
Method Detail
-
values
public static Graph.Builder.Hint[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Graph.Builder.Hint c : Graph.Builder.Hint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Graph.Builder.Hint valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-