Learn R Programming

HEMDAG (version 2.7.4)

root.node: Root node

Description

Find the root node of a directed graph.

Usage

root.node(g)

Arguments

g

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

Value

Name of the root node.

Examples

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

Run the code above in your browser using DataLab