Learn R Programming

bnclassify (version 0.4.8)

direct_forest: Direct an undirected graph.

Description

Starting from a root not, directs all arcs away from it and applies the same, recursively to its children and descendants. Produces a directed forest.

Usage

direct_forest(g, root = NULL)

Value

A directed graph

Arguments

g

An undirected graph.

root

A character. Optional tree root.