Clustering Graph Sets

The resulting sub-graphs from the Frequent Subgraph Mining task are used as input for this step. The entry point in the graph set clustering component is the clustering class. The clustering class injects the objects required for the execution of a clustering algorithm and executes the clustering. To setup and execute a graph set clustering, the following code should be used:

from collaboration_detection.datastructures import GraphCollection
from collaboration_detection.clustering.clustering import Clustering
from collaboration_detection.clustering.enums import Algorithm

# 1. Load the sub-graphs into a graph_collection
g_c = GraphCollection().load("graphs.db")
# 2. Execute clustering
Clustering.execute(
    graph_collection=g_c,
    algorithm=Algorithm.DENSITY_BASED,
    cluster_dissimilarity=0
)
# 3. The found clusters are now stored inside the Graph Collection
g_c.clusters

TODO: ADD PARAMETER OVERVIEW