Class EmptyMultiGraphGenerator<U>
java.lang.Object
es.uam.eps.ir.relison.graph.generator.EmptyMultiGraphGenerator<U>
- Type Parameters:
U
- Type of the nodes.
- All Implemented Interfaces:
GraphGenerator<U>
public class EmptyMultiGraphGenerator<U> extends java.lang.Object implements GraphGenerator<U>
Creates an empty multigraph
-
Field Summary
Fields Modifier and Type Field Description private boolean
configured
Indicates if the generator has been configured.private boolean
directed
Indicates if the graph is directed.private boolean
weighted
Indicates if the graph is weighted. -
Constructor Summary
Constructors Constructor Description EmptyMultiGraphGenerator()
-
Method Summary
-
Field Details
-
directed
private boolean directedIndicates if the graph is directed. -
configured
private boolean configuredIndicates if the generator has been configured. -
weighted
private boolean weightedIndicates if the graph is weighted.
-
-
Constructor Details
-
EmptyMultiGraphGenerator
public EmptyMultiGraphGenerator()
-
-
Method Details
-
configure
public void configure(java.lang.Object... configuration)Description copied from interface:GraphGenerator
Configures the generator.- Specified by:
configure
in interfaceGraphGenerator<U>
- Parameters:
configuration
- An array containing the configuration parameters.
-
configure
public void configure(boolean directed, boolean weighted)Configures the graph generator.- Parameters:
directed
- indicates if the graph is directedweighted
- indicates if the graph is weighted
-
generate
Description copied from interface:GraphGenerator
Generates a graph.- Specified by:
generate
in interfaceGraphGenerator<U>
- Returns:
- the generated graph.
- Throws:
GeneratorNotConfiguredException
- The generator is not configured.
-