get_roots: Find all the leaves and root vertices in a directed graph. A...

Description Usage Arguments Value Examples

View source: R/misc-utilities.R

Description

Find all the leaves and root vertices in a directed graph. A root node has no parents

Usage

1
2
3

Arguments

g

an igraph directed graph

Value

chacter vector of vertex names

Examples

1
2
g <- ba.game(10)
get_roots(g)

robertness/lucy documentation built on May 27, 2019, 10:32 a.m.