Class NoLinksGraphGenerator<U>
java.lang.Object
es.uam.eps.ir.relison.graph.generator.NoLinksGraphGenerator<U>
- Type Parameters:
U
- Type of the users
- All Implemented Interfaces:
GraphGenerator<U>
public class NoLinksGraphGenerator<U> extends java.lang.Object implements GraphGenerator<U>
Class for generating graphs without links.
-
Field Summary
Fields Modifier and Type Field Description private boolean
configured
True if the graph has already been configured, false if not.private boolean
directed
Indicates if the generated graphs are directed or undirected.private Generator<U>
generator
User generator.private int
numNodes
Number of nodes of the generated graphs. -
Constructor Summary
Constructors Constructor Description NoLinksGraphGenerator()
-
Method Summary
-
Field Details
-
numNodes
private int numNodesNumber of nodes of the generated graphs. -
generator
User generator. -
directed
private boolean directedIndicates if the generated graphs are directed or undirected. -
configured
private boolean configuredTrue if the graph has already been configured, false if not.
-
-
Constructor Details
-
NoLinksGraphGenerator
public NoLinksGraphGenerator()
-
-
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
Configures the graph.- Parameters:
directed
- Indicates if the node is directed or not.numNodes
- Number of nodes of the graph.generator
- Object that automatically creates the indicated number of nodes.
-
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.
-