Class ErdosRenyi
java.lang.Object
edu.cmu.tetrad.algcomparison.graph.ErdosRenyi
- All Implemented Interfaces:
RandomGraph
,TetradSerializable
,Serializable
Creates a random graph by the Erdos-Renyi method (probabiliy of edge fixed, # edges not).
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateGraph
(Parameters parameters) createGraph.Returns a short, one-line description of this graph type.Returns the parameters that this graph uses.
-
Constructor Details
-
ErdosRenyi
public ErdosRenyi()Initializes a new instance of the ErdosRenyi class.
-
-
Method Details
-
createGraph
createGraph.
- Specified by:
createGraph
in interfaceRandomGraph
- Parameters:
parameters
- Whatever parameters are need for the given graph. See getParameters().- Returns:
- Returns a random graph using the given parameters.
-
getDescription
Returns a short, one-line description of this graph type. This will be printed in the report.- Specified by:
getDescription
in interfaceRandomGraph
- Returns:
- This description.
-
getParameters
Returns the parameters that this graph uses.- Specified by:
getParameters
in interfaceRandomGraph
- Returns:
- A list of String names of parameters.
-