|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.javaGenes.graph.VertexAndEdgeProvider
holds a set of vertices and a set of edges. Vertices and edges should not be connected to anything. Provides copies of these at random when asked. Used to generate random graphs. Vertices and edges are provided with equal probability. To skew the distribution add extra copies of what you want more of.
Graph
,
Serialized FormField Summary | |
protected ExtendedVector |
edges
the edges to be provided |
protected ExtendedVector |
vertices
the vertices to be provided. |
Constructor Summary | |
VertexAndEdgeProvider()
|
Method Summary | |
void |
add(Edge e)
add e to the edges to be provided |
void |
add(Vertex v)
add v to the vertices to be provided |
DirectedEdge |
getDirectedEdge()
|
DirectedEdge |
getDirectedEdge(Predicate p)
|
DirectedVertex |
getDirectedVertex()
|
DirectedVertex |
getDirectedVertex(Predicate p)
|
Edge |
getEdge()
|
Edge |
getEdge(Predicate p)
|
Vertex |
getVertex()
|
Vertex |
getVertex(Predicate p)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected ExtendedVector vertices
protected ExtendedVector edges
Constructor Detail |
public VertexAndEdgeProvider()
Method Detail |
public void add(Vertex v)
public Vertex getVertex()
public DirectedVertex getDirectedVertex()
public Vertex getVertex(Predicate p)
public DirectedVertex getDirectedVertex(Predicate p)
public void add(Edge e)
public Edge getEdge()
public DirectedEdge getDirectedEdge()
public Edge getEdge(Predicate p)
public DirectedEdge getDirectedEdge(Predicate p)
public java.lang.String toString()
|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |