如果您从 R 中使用 igraph,请使用此选项
incident {igraph} | R 文档 |
图中顶点的关联边
incident(graph, v, mode = c("all", "out", "in", "total"))
图 |
输入图。 |
v |
查询关联边的顶点。 |
模式 |
是否查询传出(‘out’)、传入(‘in’)边或两种类型(‘all’)。这对于无向图将被忽略。 |
包含输入顶点的关联边的边序列。
其他结构查询: [.igraph()
, [[.igraph()
, adjacent_vertices()
, are_adjacent()
, ends()
, get.edge.ids()
, gorder()
, gsize()
, head_of()
, incident_edges()
, is_directed()
, neighbors()
, tail_of()
g <- make_graph("Zachary")
incident(g, 1)
incident(g, 34)