Learn R Programming

HEMDAG (version 2.1.3)

find.leaves: Leaves

Description

Find the leaves of a directed graph

Usage

find.leaves(g)

Arguments

g

a graph of class graphNEL. It represents the hierarchy of the classes

Value

a vector with the names of the leaves of g

Examples

Run this code
# NOT RUN {
data(graph);
leaves <- find.leaves(g);
# }

Run the code above in your browser using DataLab