ta.TwitterAnalysis.print_top_nodes_cluster_metrics

TwitterAnalysis.print_top_nodes_cluster_metrics(G, top_degree_end, acc_node_size_cutoff=None)[source]

Calculates clustering metrics for top degree nodes

Parameters
  • G – undirected networkx graph created from the Twitter data

  • top_degree_end – the number of top nodes to use for calculation

  • acc_node_size_cutoff ((Optional)) – The average clustering coefficient metric can take a long time to run, so users can set a cutoff number in this parameter for the graph size that will decide if that metric will be printed or not depending on the graph size. (Default=None)

Examples

Create graph visualization files

>>> print_cluster_metrics(
>>> G_Community,
>>> G,
>>> top_no=3,
>>> acc_node_size_cutoff=None
>>> )