Use of edge's weights in model inference

Dear Dr. Tiago Peixoto,

I have a question regarding weighted graphs. I would like to classify a
network with weighted edges into groups taking into account these weights.
I have used minimize_blockmodel_dl and minimize_nested_blockmodel_dl before
but I don't know exactly how to implement these functions in a weighted
network. I'm not sure if I have to use the layered version, but in this
case I don't know how to get these layers from my network.

Thank you very much and sorry for the basic question,


attachment.html (621 Bytes)

Are the edge weights integers or real?

The edge's weights are integers

2016-11-15 18:17 GMT+01:00 Andrea Briega <annbrial(a)>:

attachment.html (1014 Bytes)

The edge's weights are integers

In this case, you should just pass the property map with the weights as the
"eweight" parameter, e.g.

   state = minimize_nested_blockmodel_dl(g,state_args=dict(eweight=weights))


I hadn't found that option, it's much easier than I thought. Thank you very

2016-11-15 19:24 GMT+01:00 Andrea Briega <annbrial(a)>:

attachment.html (1.47 KB)

How do you fit a (nested) blockmodel if the edge weights are real?

attachment.html (3.58 KB)