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 booleanconfiguredIndicates if the generator has been configured.private booleandirectedIndicates if the graph is directed.private booleanweightedIndicates 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: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 generator.- Parameters:
directed- indicates if the graph is directedweighted- indicates if the graph is 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.
-