Learn R Programming

HEMDAG (version 2.7.4)

find.leaves: Leaves

Description

Find 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