ulfaslak / network_styling_with_d3

(1) Input a network. (2) Style it. (3) Download the result.
MIT License
28 stars 7 forks source link

Make singleton nodes not disappear when scaled by strength #26

Closed benmaier closed 5 years ago

benmaier commented 5 years ago

I had the problem that nodes with degree k = 0 disappear when node size is scaled by strength. This makes conceptually sense, but I still wanna see the nodes with degree zero. Hence I now find the minimum non-zero strength and if display_singleton_nodes is true, the size of k = 0 nodes is rescaled to be equal to this minimum non-zero strength.

I don't know if I've done that in a way which is in line with your concept, I hope it's the case :)

ulfaslak commented 5 years ago

Great work! All good concept-wise!