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

incident

Incident edges of a vertex in a graph


Description

Incident edges of a vertex in a graph

Usage

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

Arguments

graph

The input graph.

v

The vertex of which the incident edges are queried.

mode

Whether to query outgoing (‘out’), incoming (‘in’) edges, or both types (‘all’). This is ignored for undirected graphs.

Value

An edge sequence containing the incident edges of the input vertex.

See Also

Examples

g <- make_graph("Zachary")
incident(g, 1)
incident(g, 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.