Visual Analytics

At the end of the analytical process, it is often useful to visualize the obtained results. cdlib provides a few built-in facilities to ease such tasks.

Network Visualization

Visualizing a graph is always a good idea (if its size is reasonable).

plot_network_clusters(graph, partition[, ...])

This function plots a graph where nodes are color-coded based on their community assignments.

plot_network_highlighted_clusters(graph, ...)

This function plots a network with highlighted communities, node color coding for communities and draws polygons around clusters.

plot_community_graph(graph, partition[, ...])

This function plots a graph where each node represents a community, and nodes are color-coded based on their community assignments generated by a community detection algorithm.

Analytics plots

Community evaluation outputs can be easily used to represent the main partition characteristics visually.

plot_sim_matrix(clusterings, scoring)

Plot a similarity matrix between a list of clusterings, using the provided scoring function.

plot_com_stat(com_clusters, com_fitness)

Plot the distribution of a property among all communities for a clustering, or a list of clusterings (violin-plots)

plot_com_properties_relation(com_clusters, ...)

Plot the relation between two properties/fitness function of a clustering

plot_scoring(graphs, ref_partitions, ...[, ...])

Plot the scores obtained by a list of methods on a list of graphs.

Dynamic Community Events plots

Dynamic community detection algorithms can be evaluated using the dynamic community events framework. The results can be visualized using the following functions.

plot_flow(lc[, node_focus, slice])

Plot the flow of a lifecycle

plot_event_radar(lc, set_name, direction[, ...])

Plot the radar of event weights for a given event set.

plot_event_radars(lc, set_name[, ...])

Plot the radar of event weights for a given event set in both directions.

typicality_distribution(lc, direction[, ...])

Plot the distribution of typicality of events in a given direction.