我将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填写缺失值