Learn R Programming

pkggraph (version 0.2.3)

make_neighborhood_graph: make_neighborhood_graph

Description

Make a network or igraph graph object of dependencies and reverse dependencies from tibble output by functions like `get_neighborhood`, `get_all_dependents`etc

Usage

make_neighborhood_graph(ndf, type = "igraph")

Arguments

ndf

(tibble) Output by functions like `get_neighborhood`, `get_all_dependents` etc

type

(string, Default: "igraph") Graph object type. Either "network" or "igraph"

Value

A network or igraph graph object

See Also

neighborhood_graph, get_neighborhood

Examples

Run this code
# NOT RUN {
pkggraph::init(local = TRUE)
graph_object <- pkggraph::get_neighborhood("caret")
pkggraph::make_neighborhood_graph(graph_object)
# }

Run the code above in your browser using DataLab