n是图的顶点个数,directed是有向图标识。...邻接矩阵的图
library(igraph)
cells<-c(0,0,1,0,1,1,0,1,0,0,0,0,0,0,0,0,1,0,1,1,0,1,0,0,0,0,0,0,1,1,0,3,0,3,3,3,0,0,0,0,0,0,0,0,3,0,3,1,1,1,0,0,0,0,0,0,1,1...的节点输出
g是相应的图
3....Alice-Bob-Cecil-Alice,Daniel-Cecil-Engene,Cecil-Gordon)
> plot(g)
(3)
graph.data.frame() #从数据框画图
graph.adjacency() #从邻接矩阵创建图...g)/ecount(g) #返回图g的定点数、边数
is.connected(g) #图g是否连通
is.clusters(g) #图g有多少分支
(6)
设置图的属性:set/get.graph/vertex