Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

incident_edges

Incident edges of multiple vertices in a graph


Description

This function is similar to incident, but it queries multiple vertices at once.

Usage

incident_edges(graph, v, mode = c("out", "in", "all", "total"))

Arguments

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.

Value

A list of edge sequences.

See Also

Other structural queries: [.igraph(), [[.igraph(), adjacent_vertices(), are_adjacent(), ends(), get.edge.ids(), gorder(), gsize(), head_of(), incident(), is_directed(), neighbors(), tail_of()

Examples

g <- make_graph("Zachary")
incident_edges(g, c(1, 34))

igraph

Network Analysis and Visualization

v1.2.10
GPL (>= 2)
Authors
See AUTHORS file.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.