incident_edges {igraph} | R Documentation |
This function is similar to incident
, but it
queries multiple vertices at once.
incident_edges(graph, v, mode = c("out", "in", "all", "total"))
graph |
Input graph. |
v |
The vertices to query |
mode |
Whether to query outgoing (‘out’), incoming (‘in’) edges, or both types (‘all’). This is ignored for undirected graphs. |
A list of edge sequences.
Other structural queries: [.igraph
;
[[.igraph
; adjacent_vertices
;
are.connected
, are_adjacent
;
ecount
, gsize
;
ends
, get.edge
,
get.edges
; get.edge.ids
;
gorder
, vcount
;
head_of
; incident
;
is.directed
, is_directed
;
neighbors
; tail_of
g <- make_graph("Zachary") incident_edges(g, c(1, 34))