make_neighborhood_graph: make_neighborhood_graph

Description Usage Arguments Value Author(s) See Also Examples

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

1
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

Author(s)

Srikanth KS

See Also

neighborhood_graph, get_neighborhood

Examples

1
2
3
pkggraph::init(local = TRUE)
graph_object <- pkggraph::get_neighborhood("caret")
pkggraph::make_neighborhood_graph(graph_object)

pkggraph documentation built on May 2, 2019, 2:08 a.m.