public class RandomGraphGenerator.DefaultEdgeTopologyFactory<VV,EE> extends java.lang.Object implements RandomGraphGenerator.EdgeTopologyFactory<VV,EE>
Constructor and Description |
---|
RandomGraphGenerator.DefaultEdgeTopologyFactory() |
Modifier and Type | Method and Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
void |
createEdges(Graph<VV,EE> targetGraph,
java.util.Map<java.lang.Integer,VV> orderToVertexMap,
int numberOfEdges,
java.util.Random randomizer)
Two different calls to the createEdges() with the same parameters
must result in the generation of the same.
|
|||||||||||||||||||||||||||||||||||
int |
getMaxEdgesForVertexNum(Graph<VV,EE> targetGraph)
Return max edges for that graph.
|
|||||||||||||||||||||||||||||||||||
boolean |
isNumberOfEdgesValid(Graph<VV,EE> targetGraph,
int numberOfEdges)
checks if the numOfEdges is smaller than the Max edges according to
the following table:
|