simplegraph (version 1.0.0)

incident_edges: Incident edges

Description

Incident edges

Usage

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

Value

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

Arguments

graph

Input graph.

mode

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

Examples

Run this code
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")

Run the code above in your browser using DataLab