Collapse Graph By Sum
collapseGraphSum(graph, groups, normalize = TRUE)
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)
collapsed graph
# NOT RUN { collapsed = collapseGraphPaga(conosGraph, igraph::V(conosGraph), linearize=TRUE, winsorize=FALSE) # } # NOT RUN { # }
Run the code above in your browser using DataCamp Workspace