Fuzzy Cluster Potatoes - medialab/graph-recipes GitHub Wiki

The Fuzzy Cluster Potatoes recipe renders a network and emphasizes high concentrations of nodes with the same value for a given attribute. It requires a categorical node attribute. Colors and highlighted areas are determined after this attribute.

Recipe code

Key settings

cluster_attribute

Required. You can find node attributes with other recipes like "Attributes Tapas". It works well with an attribute with not too many different values.

Demo network with settings.cluster_attribute = "Language":

Demo network with settings.cluster_attribute = "Category":

cluster_contour

Set to true for a line around highlighted areas. Set to false for a blurry highlight.

Demo network with settings.cluster_contour = true:

Demo network with settings.cluster_contour = false: