Class SubGraphGenerator<U>
java.lang.Object
es.uam.eps.ir.relison.graph.generator.SubGraphGenerator<U>
- Type Parameters:
U
- Type of the users.
- All Implemented Interfaces:
GraphGenerator<U>
public class SubGraphGenerator<U> extends java.lang.Object implements GraphGenerator<U>
Generates a subgraph from another graph, containing only a selection of nodes.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SubGraphGenerator()
-
Method Summary
-
Field Details
-
graph
The original graph. -
users
The subset of users to keep. -
configured
private boolean configuredIndicates if the generator has been configured or not.
-
-
Constructor Details
-
SubGraphGenerator
public SubGraphGenerator()
-
-
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:
graph
- The original graph.users
- A collection containing the users we want in the final 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.GeneratorBadConfiguredException
- The generator parameters are incorretct.
-