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

    Fields 
    Modifier and Type Field Description
    private boolean configured
    Indicates if the generator has been configured or not.
    private Graph<U> graph
    The original graph.
    private java.util.Collection<U> users
    The subset of users to keep.
  • Constructor Summary

    Constructors 
    Constructor Description
    SubGraphGenerator()  
  • Method Summary

    Modifier and Type Method Description
    void configure​(Graph<U> graph, java.util.Collection<U> users)
    Configures the generator.
    void configure​(java.lang.Object... configuration)
    Configures the generator.
    Graph<U> generate()
    Generates a graph.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait