Class ComplementaryGraphGenerator<U>
java.lang.Object
es.uam.eps.ir.relison.graph.generator.ComplementaryGraphGenerator<U>
- Type Parameters:
U
- Type of the users
- All Implemented Interfaces:
GraphGenerator<U>
public class ComplementaryGraphGenerator<U> extends java.lang.Object implements GraphGenerator<U>
Generates complementary graphs.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ComplementaryGraphGenerator()
-
Method Summary
-
Field Details
-
configured
boolean configuredIndicates if the graph has been configured -
graph
The original graph -
directed
private boolean directedIndicates if the graph is directed -
weighted
private boolean weightedIndicates if the graph is weighted
-
-
Constructor Details
-
ComplementaryGraphGenerator
public ComplementaryGraphGenerator()
-
-
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 generator.- Parameters:
g
- Original graph.
-
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.
-