Description Usage Arguments Value Examples
View source: R/buildPkgDependencyGraph.R
While the inducedSubgraphByPkgs
returns the subgraph with the minimal connections
between named packages, this function takes a vector of
package names, a degree (1 or more) and returns the
subgraph(s) that are within degree
of the
package named.
1 | subgraphByDegree(g, pkg, degree = 1, ...)
|
g |
an igraph graph, typically created by
|
pkg |
character(1) package name from which to measure degree. |
degree |
integer(1) degree, limit search for adjacent vertices to this degree. |
... |
passed on to |
An igraph graph, with only nodes and their edges within degree of the named package
1 2 3 | g = buildPkgDependencyIgraph(buildPkgDependencyDataFrame())
g2 = subgraphByDegree(g, 'GEOquery')
g2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.