摘要:Graphical abstractDisplay OmittedAbstractThe Curveball algorithm is an efficient and unbiased procedure for randomizing bipartite networks (or their matrix counterpart) while preserving node degrees. Here we introduce two extensions of the procedure, making it capable to randomize also unimode directed and undirected networks. We provide formal mathematical proofs that the two extensions, as the original Curveball, are fast and unbiased (i.e. they sample uniformly from the universe of possible network configurations).•We extend the Curveball algorithm to unimode directed and undirected networks.•As the original Curveball, extensions are fast and unbiased.•We provide Python and R code implementing the new procedures.
关键词:Binary matrices;Co-occurrence;Curveball algorithm;Food web;Null model