make_neighborhood_graph {pkggraph} | R Documentation |
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
Author(s)
Srikanth KS
See Also
neighborhood_graph
,
get_neighborhood
Examples
pkggraph::init(local = TRUE)
graph_object <- pkggraph::get_neighborhood("caret")
pkggraph::make_neighborhood_graph(graph_object)
[Package pkggraph version 0.2.3 Index]