Re: [graph-tool] the number of communities over time

2020-08-31 Thread fitzgeraldj
Hi Jianjian, The multilayer model as you've used works by fitting an independent SBM to each layer, finding the best partition /across all layers/ to minimize the sum of their description lengths. To allow membership to vary across layers, you need to use the overlapping model, then look at the

[graph-tool] Layered overlapping model not working on GraphView

2020-08-25 Thread fitzgeraldj
Hi there, Layered overlapping models aren't working for GraphViews, due to the following problematic lines in LayeredBlockState: if overlap and self.ec is not None: self.base_ec = self.base_g.own_property(ec.copy()) ec = agg_state.eindex.copy() pmap(ec,

Re: [graph-tool] Multilayer graph with select aggregation over layers

2020-08-25 Thread fitzgeraldj
OK thanks for getting back to me! Looking forward to the update whenever it may come. Best, John -- Sent from: https://nabble.skewed.de/ ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Layered overlapping model not working on GraphView

2020-08-26 Thread fitzgeraldj
Apologies, gitlab won't let me sign in with any account at the moment for some reason otherwise I would. -- Sent from: https://nabble.skewed.de/ ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Multilayer graph with select aggregation over layers

2020-08-26 Thread fitzgeraldj
Hi again, On a similar note, can I quickly clarify that if I am comparing a binned layer model for multigraphs to a suitable null model, the null model of eqn (A3) corresponds to that of eqn (A2) with \ell in place of l, and then the further terms displayed? That is what would make sense to me

[graph-tool] Multilayer graph with select aggregation over layers

2020-08-17 Thread fitzgeraldj
Hi Tiago, Thanks for an amazing library! I'm trying to use the multilayer aspect of graph-tool and I have a few questions that I haven't found answers to online: 1) How do you access parameters inferred for independent models on separate layers, say for reproducing Figure 5(b) from the paper?

Re: [graph-tool] Multilayer graph with select aggregation over layers

2020-08-20 Thread fitzgeraldj
Hi again, I believe I've answered my first question (clumsily I suppose) by taking the state inferred from the layered model, then taking e.g. submodels=[] lgs = state.get_levels()[0].gs for l,lg in enumerate(lgs): submodels.append(gt.NestedBlockState(lg,bs=[lvl.layer_states[l].b for lvl in

Re: [graph-tool] Multilayer graph with select aggregation over layers

2020-08-26 Thread fitzgeraldj
Actually looking back is it instead that the null model in (A2) tells you whether the full set of layers provides useful information, then in order to compare between this and models with different bins you need to incorporate the additional terms of (A3) (rather than solely the output