sigmaNet icon indicating copy to clipboard operation
sigmaNet copied to clipboard

Network with isolated nodes

Open m3hdad opened this issue 6 years ago • 0 comments

Actual Behavior

Cannot render and apply node size based on degree with a network containing isolated nodes (degree = 0)

Expected/Desired Behavior

Node size based on degree should allow isolated nodes (degree = 0) with min size defined.

How to Reproduce

library(igraph) library(sigmaNet)

set.seed(123) g <- erdos.renyi.game(10, 1/5) sig <- sigmaFromIgraph(g) %>% addNodeSize(sizeMetric = 'degree')

m3hdad avatar Sep 27 '19 13:09 m3hdad