incident_edges: Incident edges

Description Usage Arguments Value Examples

View source: R/basics.R

Description

Incident edges

Usage

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

Arguments

graph

Input graph.

mode

Whether to use out edges, in edges or all edges.

Value

A list of data frames, each a set of edges.

Examples

1
2
3
4
G <- graph(list(A = c("B", "C"), B = "C", C = "A"))
incident_edges(G, mode = "out")
incident_edges(G, mode = "in")
incident_edges(G, mode = "all")

MangoTheCat/simplegraph documentation built on May 7, 2019, 2:23 p.m.