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 booleanconfiguredIndicates whether the graph has been configured.private booleandirectedIndicates whether the graph is going to be directed.private booleanweightedIndicates 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:GraphGeneratorConfigures the generator.- Specified by:
configurein 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:GraphGeneratorGenerates a graph.- Specified by:
generatein interfaceGraphGenerator<U>- Returns:
- the generated graph.
- Throws:
GeneratorNotConfiguredException- The generator is not configured.
-