Re: [graph-tool] bipartite graphs

2020-03-23 Thread Tiago de Paula Peixoto
(Please answer to the mailing list, not directly Am 23.03.20 um 15:31 schrieb Davide Cittaro: >> Note that if your objective is to do SBM inference, it's better to make >> the graph undirected. >> > > Why so? Is this true in general? Well, if you have a bipartite network where it is important do

Re: [graph-tool] bipartite graphs

2020-03-23 Thread Davide Cittaro
Hi > On 23 Mar 2020, at 15:24, Tiago de Paula Peixoto wrote: > > You can add the weights together with the edges in Graph.add_edge_list() > via the eprops parameter, but otherwise the above is fine. > Ok > Note that if your objective is to do SBM inference, it's better to make > the graph und

Re: [graph-tool] bipartite graphs

2020-03-23 Thread Tiago de Paula Peixoto
Am 20.03.20 um 11:22 schrieb Davide Cittaro: > Hello, > I would like to test nSBM on bipartite graphs but before going on I need to > be sure I'm able to build a bipartite graph in graph-tool starting from a > matrix: > > A_nodes = np.arange(data.shape[0]) #nodes for rows start from 0 > B_nodes

[graph-tool] bipartite graphs

2020-03-20 Thread Davide Cittaro
Hello, I would like to test nSBM on bipartite graphs but before going on I need to be sure I'm able to build a bipartite graph in graph-tool starting from a matrix: A_nodes = np.arange(data.shape[0]) #nodes for rows start from 0 B_nodes = np.arange(data.shape[1]) + data.shape[0] # nodes from col