View source: R/combine.networks.R
uncombine_network | R Documentation |
Given a network created by combine_networks()
, uncombine_network()
returns a list of networks,
preserving attributes that can be preserved.
uncombine_network(
nw,
split.vattr = nw %n% ".blockID.vattr",
names.vattr = nw %n% ".blockName.vattr",
use.subnet.cache = FALSE
)
nw |
a |
split.vattr |
name of the vertex attribute on which to split,
defaulting to the value of the |
names.vattr |
optional name of the vertex attribute to use as
network names in the output list, defaulting to the value of the
|
use.subnet.cache |
whether to use subnet cache if available; this is only safe to do if the network is not used for its edges but only for its vertex and network attributes. |
a list of network::network
s containing subgraphs on split.vattr
. In particular,
their basic properties (directedness and bipartednes) are the same as those of the input network;
vertex attributes are split;
edge attributes are assigned to their respective edges in the returned networks.
If split.vattr
is a vector, only the first element is used and it's "popped".
split.network()
data(samplk)
o1 <- combine_networks(list(samplk1, samplk2, samplk3))
image(as.matrix(o1))
ol <- uncombine_network(o1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.