On 07.11.2016 18:46, Giovanni Colavizza wrote: > Hello, > > I am new to the tool, which looks amazing so far! > > I have a question: all graphs are created as multigraphs. I would like to > load graphs with signed edges, and be able to remove some of them for > different tests. Yet, after removal, I’d like to simplify the graph and > collapse all multiple edges between the same two nodes into a unique edge, > summing up all the weights of these different edges into a unique weight. > How would you suggest doing it? Besides externally from graph_tool, that is.
Take a look at condensation_graph(): https://graph-tool.skewed.de/static/doc/generation.html#graph_tool.generation.condensation_graph -- Tiago de Paula Peixoto <[email protected]> _______________________________________________ graph-tool mailing list [email protected] https://lists.skewed.de/mailman/listinfo/graph-tool
