powered by
Collapse Graph By Sum
collapseGraphSum(graph, groups, normalize = TRUE)
collapsed graph
igraph graph object Graph to be collapsed
factor on vertices describing cluster assignment (can specify integer vertex ids, or character vertex names which will be matched)
boolean Whether to recalculate edge weight as observed/expected (default=TRUE)
# \donttest{ collapsed = collapseGraphPaga(conosGraph, igraph::V(conosGraph), linearize=TRUE, winsorize=FALSE) # }
Run the code above in your browser using DataLab