Re: [graph-tool] Multiple edge weights and model comparison in the SBM

2020-06-15 Thread James Ruffle
Thanks On 15 Jun 2020, at 16:34, Tiago de Paula Peixoto mailto:ti...@skewed.de>> wrote: Am 15.06.20 um 16:45 schrieb James Ruffle: Tiago, I’m sorry that you feel that my code to use the graph_union with intersection, following which to remove parallel edges, then call Graph.copy_property on t

Re: [graph-tool] Multiple edge weights and model comparison in the SBM

2020-06-15 Thread Tiago de Paula Peixoto
Am 15.06.20 um 16:45 schrieb James Ruffle: > Tiago, > > I’m sorry that you feel that my code to use the graph_union with > intersection, following which to remove parallel edges, then call > Graph.copy_property on the union graph, did not follow your instructions > which, as far as I can read,

Re: [graph-tool] Multiple edge weights and model comparison in the SBM

2020-06-15 Thread James Ruffle
Tiago, I’m sorry that you feel that my code to use the graph_union with intersection, following which to remove parallel edges, then call Graph.copy_property on the union graph, did not follow your instructions which, as far as I can read, specifically asked I use all of those and in that order

Re: [graph-tool] Multiple edge weights and model comparison in the SBM

2020-06-15 Thread Tiago de Paula Peixoto
Am 15.06.20 um 15:52 schrieb James Ruffle: > Thanks for the suggestion Tiago. Unfortunately, it is resulting in the > same issue for me. > > In extension to the previous example: > ug = gt.graph_union(g,u,intersection=u.vertex_index,internal_props=True) > gt.remove_parallel_edges(ug) > print(ug) >

Re: [graph-tool] Multiple edge weights and model comparison in the SBM

2020-06-15 Thread James Ruffle
Thanks for the suggestion Tiago. Unfortunately, it is resulting in the same issue for me. In extension to the previous example: ug = gt.graph_union(g,u,intersection=u.vertex_index,internal_props=True) gt.remove_parallel_edges(ug) print(ug) print(g.vp.label[0]) #Myriel print(ug.vp.label[0]) #’ ‘

Re: [graph-tool] Multiple edge weights and model comparison in the SBM

2020-06-15 Thread Tiago de Paula Peixoto
Am 15.06.20 um 14:20 schrieb James Ruffle: > It seemed reasonable that one might want to review the results of a > MixedMeasuredBlockState with respect to the original graph. For instance, > perhaps I have certain vertex or edge properties within my original graph > object I want to review for a

Re: [graph-tool] Multiple edge weights and model comparison in the SBM

2020-06-15 Thread James Ruffle
Hi Tiago, It seemed reasonable that one might want to review the results of a MixedMeasuredBlockState with respect to the original graph. For instance, perhaps I have certain vertex or edge properties within my original graph object I want to review for association to this model's collected epr

Re: [graph-tool] Multiple edge weights and model comparison in the SBM

2020-06-15 Thread Tiago de Paula Peixoto
Am 15.06.20 um 13:36 schrieb James Ruffle: > How do you manage to get around this issue? Presumably there is a > simpler way with the graph-tool syntax than forlooping everything and > matching edges up between the two graphs…? Obviously, the reconstructed graph is different from what has been mea

Re: [graph-tool] Multiple edge weights and model comparison in the SBM

2020-06-15 Thread James Ruffle
Dear Tiago, Thank you for your reply, this is really helpful and I think that the MixedMeasuredBlockState is just what I need. I would like to run the MixedMeasuredBlockState, collect the marginals and then store these as an edge property on the original graph for later analysis with my other v

Re: [graph-tool] Multiple edge weights and model comparison in the SBM

2020-06-04 Thread Tiago de Paula Peixoto
Dear James, This is a very involved question, and it's a bit difficult to get to the bottom of what you want. I'll start with the last question, which I think can be addressed more directly: Am 03.06.20 um 20:35 schrieb James Ruffle: > Alternatively, do you have any suggestions on how I would ac

[graph-tool] Multiple edge weights and model comparison in the SBM

2020-06-03 Thread James Ruffle
Dear Tiago / Graph Tool community, I am running the SBM on a directed network where edges are all conditional probability of one event, given the other, approximately 60 nodes. This is generated originally from a binary matrix of repeated samples and if these 60 nodes as variables occurred or d