此函数类似于 incident()
,但它一次查询多个顶点。
用法
incident_edges(graph, v, mode = c("out", "in", "all", "total"))
参见
其他结构查询:[.igraph()
、[[.igraph()
、adjacent_vertices()
、are_adjacent()
、ends()
、get_edge_ids()
、gorder()
、gsize()
、head_of()
、incident()
、is_directed()
、neighbors()
、tail_of()
示例
g <- make_graph("Zachary")
incident_edges(g, c(1, 34))
#> [[1]]
#> + 16/78 edges from dda6621:
#> [1] 1-- 2 1-- 3 1-- 4 1-- 5 1-- 6 1-- 7 1-- 8 1-- 9 1--11 1--12 1--13 1--14
#> [13] 1--18 1--20 1--22 1--32
#>
#> [[2]]
#> + 17/78 edges from dda6621:
#> [1] 9--34 10--34 14--34 15--34 16--34 19--34 20--34 21--34 23--34 24--34
#> [11] 27--34 28--34 29--34 30--34 31--34 32--34 33--34
#>