predecessors: Predecessors and successors

View source: R/basics.R

predecessorsR Documentation

Predecessors and successors

Description

Predecessors and successors

Usage

predecessors(graph)

successors(graph)

Arguments

graph

Input graph

Value

Named list of character vectors, the predecessors or the successors of each vertex.

Examples

G <- graph(list(A = c("B", "C"), B = "C", C = "A"))
predecessors(G)
successors(G)

simplegraph documentation built on Aug. 31, 2023, 9:07 a.m.