Incident edges of multiple vertices in a graph
This function is similar to
incident, but it
queries multiple vertices at once.
incident_edges(graph, v, mode = c("out", "in", "all", "total"))
- Input graph.
- The vertices to query
- 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:
g <- make_graph("Zachary") incident_edges(g, c(1, 34))