public enum OrderedDfsGraphFactory extends java.lang.Enum<OrderedDfsGraphFactory> implements GraphFactory<DirectedOrderedDfsVertex>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
AbstractGraph<DirectedOrderedDfsVertex> |
newGraph()
Creates a graph with the default initial capacity.
|
AbstractGraph<DirectedOrderedDfsVertex> |
newGraph(java.util.Collection<DirectedOrderedDfsVertex> vertices)
Creates a graph whose initial vertices are those contained in the given collection.
|
AbstractGraph<DirectedOrderedDfsVertex> |
newGraph(int initialVertices)
Creates a graph with the specified initial capacity.
|
static OrderedDfsGraphFactory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OrderedDfsGraphFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrderedDfsGraphFactory INSTANCE
public static OrderedDfsGraphFactory[] values()
for (OrderedDfsGraphFactory c : OrderedDfsGraphFactory.values()) System.out.println(c);
public static OrderedDfsGraphFactory valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic AbstractGraph<DirectedOrderedDfsVertex> newGraph()
GraphFactory
newGraph
in interface GraphFactory<DirectedOrderedDfsVertex>
public AbstractGraph<DirectedOrderedDfsVertex> newGraph(int initialVertices)
GraphFactory
newGraph
in interface GraphFactory<DirectedOrderedDfsVertex>
initialVertices
- the initial vertex capacity of the graphpublic AbstractGraph<DirectedOrderedDfsVertex> newGraph(java.util.Collection<DirectedOrderedDfsVertex> vertices)
GraphFactory
newGraph
in interface GraphFactory<DirectedOrderedDfsVertex>
vertices
- collection of vertices which are to belong to the given graph