public class TypedVertexGenerator extends java.lang.Object implements VertexGenerator
Modifier and Type | Field and Description |
---|---|
protected static java.lang.Object |
DIRECTED |
protected static java.lang.Object |
MIXED |
protected boolean |
simple
if true, generated vertices won't support parallel edges
|
protected java.lang.Object |
type |
protected static java.lang.Object |
UNDIRECTED |
TAG
Constructor and Description |
---|
TypedVertexGenerator(ArchetypeGraph g) |
TypedVertexGenerator(java.util.Collection edge_requirements)
Determines the type of vertices that this generator will
create, according to the edge requirements specified
in the constructor:
undirected, no parallel edges - creates @link{SimpleUndirectedSparseVertex}
directed, no parallel edges - creates @link{SimpleDirectedSparseVertex}
mixed (directed and undirected), no parallel edges - creates @link{SimpleSparseVertex}
undirected, parallel edges allowed - creates @link{UndirectedSparseVertex}
directed, parallel edges allowed - creates @link{DirectedSparseVertex}
mixed, parallel edges allowed - creates @link{SparseVertex}
|
protected java.lang.Object type
protected boolean simple
protected static final java.lang.Object UNDIRECTED
protected static final java.lang.Object DIRECTED
protected static final java.lang.Object MIXED
public TypedVertexGenerator(java.util.Collection edge_requirements)
public TypedVertexGenerator(ArchetypeGraph g)
public Vertex create()
create
in interface VertexGenerator
VertexGenerator.create()