tbl_graph函数失败

时间:2019-04-10 01:02:22

标签: r networkx igraph tidygraph

我将igraph应用于在论坛上可视化网络。

rt_net <- tbl_graph(nodes = nodes, edges = edges, directed = TRUE)
Error in (function (edges, n = max(edges), directed = TRUE)  : 
  At type_indexededgelist.c:117 : cannot create empty graph with negative number of vertices, Invalid value

当我检查边列表的矩阵时,没有负数。我也用0填写缺失值

0 个答案:

没有答案