build_community_graph

This module is used to generate a community graph from commlist files.

This script generates the community graph from commlist files.

python build_community_graph.py INPUT OUTPUT METRIC [OPTIONS]

INPUT is the input tcommlist file. OUTPUT is the output repository.
METRIC is the metric chosen.

Metrics:
* overlap
* relative_overlap
* match

Options:
* -s, --start START
                set start snapshot for analysis
* -e, --end END set end snapshot for analysis
* -l, --log     activate logger INFO level
* -d, --debug   activate logger DEBUG level (takes precedence over -l option)

This script generates the following files inside OUTPUT directory:

  • membership.tcommlist: community-matched tcommlist file

  • communities.gml: community graph in gml format

  • predecessors.csv: start_snapshot, end_snapshot, cluster, predecessor_of

  • successors.csv: start_snapshot, end_snapshot, cluster, successor_of