Description Usage Arguments Value Author(s) Examples
Creates a subgraph containing only nodes specified from a data frame, including all edges among neighbors.
1 |
g |
An igraph object. |
dat |
A data frame with node ids and attributes to be mapped to 'g'. |
refcol |
The reference column (node ids) in the 'dat' object. |
maincomp |
Logical value, whether to return only the main component of the subgraph. |
connected |
Logical value, whether to return only connected nodes. |
transdat |
Logical value, whether to transfer node attributes from the 'dat' object to the subgraph. |
Returns a igraph object.
Mauro Castro
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.