networkD3
networkD3 copied to clipboard
Fix use of `check_zero()` in `forceNetwork()` and `sankeyNetwork()`
Fixes #281
Calling check_zero() too early in the function resulted in a bug where 1-indexed input would not be detected if either:
-
Linkswas not adata.frame -
SourceorTargetwere missing
Moving check_zero() further down the functions and adding missing input checks for forceNetwork() fixes the issue.