Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 R 新手,想构建一个具有 30 个节点和 k=4(邻域连通性)的规则格。
我已经尝试了带有 graph.lattice 函数的 igraph 包,但无法生成我正在寻找的东西。
iGraph 中具有 k = 4 邻域连通性的规则格:
require(igraph) g <- graph.lattice( c(5,6) ) g <- connect.neighborhood(g, 4) plot(g)