Skip to contents

Colors the nodes according to their centrality.

Usage

ctr_ml (g.list, ctr_type)

Arguments

g.list

List of igraph objects (multilayer network).

ctr_type

Centrality type ("degree", "betweenness", "closeness").

Value

A list of igraph objects which nodes are colored.

Examples


g <- data ("mlnet_dstoolAB")

ctr_ml (g, ctr_type = "degree")
#> Error in ensure_igraph(graph): Must provide a graph object (provided wrong object type).
ctr_ml (g, ctr_type = "betweenness")
#> Error in ensure_igraph(graph): Must provide a graph object (provided wrong object type).
ctr_ml (g, ctr_type = "closeness")
#> Error in ensure_igraph(graph): Must provide a graph object (provided wrong object type).