predecessors: Predecessors and successors

Description Usage Arguments Value Examples

View source: R/basics.R

Description

Predecessors and successors

Usage

1
2
3

Arguments

graph

Input graph

Value

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

Examples

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

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