Learn R Programming

HEMDAG (version 2.1.3)

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