Class EmptyGraphGenerator<U>
java.lang.Object
es.uam.eps.ir.relison.graph.generator.EmptyGraphGenerator<U>
- Type Parameters:
U
- Type of the vertices.
- All Implemented Interfaces:
GraphGenerator<U>
public class EmptyGraphGenerator<U> extends java.lang.Object implements GraphGenerator<U>
Empty graph generator.
-
Field Summary
Fields Modifier and Type Field Description private boolean
configured
Indicates whether the graph has been configured.private boolean
directed
Indicates whether the graph is going to be directed.private boolean
weighted
Indicates whether the graph has weights. -
Constructor Summary
Constructors Constructor Description EmptyGraphGenerator()
-
Method Summary
-
Field Details
-
directed
private boolean directedIndicates whether the graph is going to be directed. -
configured
private boolean configuredIndicates whether the graph has been configured. -
weighted
private boolean weightedIndicates whether the graph has weights.
-
-
Constructor Details
-
EmptyGraphGenerator
public EmptyGraphGenerator()
-
-
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- Parameters:
directed
- Whether the graph should be directed.weighted
- Whether the graph should be 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.
-