如果您从 R 中使用 igraph,请使用此选项
| ends {igraph} | R 文档 |
一些图边的关联顶点
ends(graph, es, names = TRUE)
图 |
输入图 |
es |
要查询的边的序列 |
names |
是否返回顶点名称或数字顶点 ID。默认情况下,使用顶点名称。 |
顶点名称或顶点 ID 的两列矩阵。
其他结构查询:[.igraph(), [[.igraph(), adjacent_vertices(), are_adjacent(), get.edge.ids(), gorder(), gsize(), head_of(), incident_edges(), incident(), is_directed(), neighbors(), tail_of()
g <- make_ring(5)
ends(g, E(g))