powered by
Predecessors and successors
predecessors(graph)successors(graph)
successors(graph)
Named list of character vectors, the predecessors or the successors of each vertex.
Input graph
G <- graph(list(A = c("B", "C"), B = "C", C = "A")) predecessors(G) successors(G)
Run the code above in your browser using DataLab