Pixel Image Spaghetti Deluxe - medialab/graph-recipes GitHub Wiki

This recipe renders the network as a PNG image.

Recipe code

Key settings

node_halo_range

In this white halo around each node, only the edges tied to that node appear. This feature allows to have a better reading of nodes' connectivity in entangled areas.

The value is the pixel radius of the halo (in addition to the node radius). Set to 0 to disable. High value may produce unpleasant artifacts (see below).

Note that the halo is contained to a Voronoï cell around the node: the halo of two nodes never overlap.

Demo network with settings.node_halo_range = 0:

Demo network with settings.node_halo_range = 10:

Demo network with settings.node_halo_range = 100: