Method executing the whole metanetwork pipeline for the initial metanetwork object (append_agg_nets
, compute_TL
,
attach_layout
)
metanet_pipe(metanetwork, beta = 0.1, verbose = TRUE)
# S3 method for metanetwork
metanet_pipe(metanetwork, beta = 0.1, verbose = TRUE)
object of class 'metanetwork'
the diffusion parameter of the diffusion kernel, a positive scalar controlling the squeezing of the network
a boolean indicating whether message along the pipeline should be printed
object of class 'metanetwork', with computed trophic levels and layout stored as node attribute
NULL
library(metanetwork)
library(igraph)
g = make_lattice(dimvector = c(4,4),2,3,directed = TRUE)
meta0 = build_metanet(g)
#> Warning: nodes of metaweb do not have names. Assigning integers as names
meta0 = metanet_pipe(meta0)
#> computing trophic levels
#> attaching layout for beta= 0.1
#> attaching TL-tsne layout for metaweb_
#>
#> beta = 0.1
#> beta = 0.1
#> Epoch: Iteration #100 error is: 431.402455891914
#> Epoch: Iteration #200 error is: 101.980051216324
#> Epoch: Iteration #300 error is: 101.980051216652
ggmetanet(meta0)
#> mode is TL-tsne
#> Warning: node.size is invariant; size.cut ignored