incident | R Documentation |
Incident edges of a vertex in a graph
incident(graph, v, mode = c("all", "out", "in", "total"))
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. |
An edge sequence containing the incident edges of the input vertex.
Other structural queries:
[.igraph()
,
[[.igraph()
,
adjacent_vertices()
,
are_adjacent()
,
ends()
,
get_edge_ids()
,
gorder()
,
gsize()
,
head_of()
,
incident_edges()
,
is_directed()
,
neighbors()
,
tail_of()
g <- make_graph("Zachary")
incident(g, 1)
incident(g, 34)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.