delete.edges doesn't work in igraph

馋奶兔 提交于 2019-12-12 03:16:32

问题


I want to delete all edges that link to node '1' but the function delete.edges doesn't work:

g<-graph.full(n=10, directed = TRUE, loops = FALSE)
g <- delete.edges(g,c(2,1,3,1,4,1,5,1,6,1))
plot(g)

When viewing the graph, nothing changes! what is the problem ?

来源:https://stackoverflow.com/questions/35040517/delete-edges-doesnt-work-in-igraph

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!