0

我有一个大型网络,我想将其用作我的 Barabasi-Albert-Model 的“start.graph”,但不幸的是我收到了这个错误。

sample_pa(100, power = 1, m = 2, start.graph = large_network) sample_pa(100, power = 1, m = 2, start.graph = igraph_worm_traffic_colored[[1]]) 中的错误:在 games.c:519 : 起始图有太多顶点,无效值

有没有办法改变最大顶点数?

4

1 回答 1

0

Your error is because you need to have more vertices in your output graph than in your starting graph in order for the BA-model to work. You can take a subgraph of your large network if you want to use it to produce a 100-vertex graph.

 g2<-induced.subgraph(large.network, sample(V(large.network), 20))

Or you can increase the number of vertices in your output graph.

于 2018-06-02T22:09:46.970 回答