School of Natural and Computational Sciences, Massey University, Auckland, New Zealand.
PLoS One. 2020 Oct 23;15(10):e0240888. doi: 10.1371/journal.pone.0240888. eCollection 2020.
We present a method for assembling directed networks given a prescribed bi-degree (in- and out-degree) sequence. This method utilises permutations of initial adjacency matrix assemblies that conform to the prescribed in-degree sequence, yet violate the given out-degree sequence. It combines directed edge-swapping and constrained Monte-Carlo edge-mixing for improving approximations to the given out-degree sequence until it is exactly matched. Our method permits inclusion or exclusion of 'multi-edges', allowing assembly of weighted or binary networks. It further allows prescribing the overall percentage of such multiple connections-permitting exploration of a weighted synthetic network space unlike any other method currently available for comparison of real-world networks with controlled multi-edge proportion null spaces. The graph space is sampled by the method non-uniformly, yet the algorithm provides weightings for the sample space across all possible realisations allowing computation of statistical averages of network metrics as if they were sampled uniformly. Given a sequence of in- and out- degrees, the method can also produce simple graphs for sequences that satisfy conditions of graphicality. Our method successfully builds networks with order O(107) edges on the scale of minutes with a laptop running Matlab. We provide our implementation of the method on the GitHub repository for immediate use by the research community, and demonstrate its application to three real-world networks for null-space comparisons as well as the study of dynamics of neuronal networks.
我们提出了一种给定规定的双度(入度和出度)序列组装有向网络的方法。该方法利用符合给定入度序列但违反给定出度序列的初始邻接矩阵组装的排列。它结合了有向边交换和受约束的蒙特卡罗边混合,以改进对给定出度序列的逼近,直到完全匹配。我们的方法允许包括或排除“多边”,允许组装加权或二进制网络。它进一步允许规定这种多连接的总体百分比,从而允许探索加权合成网络空间,与目前可用于比较具有受控多边缘比例零空间的真实网络的任何其他方法都不同。该方法通过非均匀方式对图形空间进行采样,但该算法为所有可能的实现提供了样本空间的权重,从而可以计算网络指标的统计平均值,就好像它们是均匀采样的一样。给定入度和出度序列,该方法还可以为满足图形性条件的序列生成简单图。我们的方法可以在几分钟内使用笔记本电脑上的 Matlab 成功构建具有 O(107)个边的阶的网络。我们在 GitHub 存储库上提供了该方法的实现,供研究社区立即使用,并展示了它在三个真实网络中的应用,用于零空间比较以及神经元网络动力学的研究。