Hi Tiago,
thanks for the quick and precise answer!
Yes, it's desired behavior.
Ignoring parallel edges would have complicated and slowed down the code,
and in any case can be easily implemented by the user (see below), who
should have something specific in mind when attempting to compute the
value for multigraphs.
OK, do you think it would be relevant to include it in the documentation?
It was not very obvious to me...
If this is indeed desired, is there a quick way to do the equivalent of
setting the graph to undirected and removing the parallel edges in
"view-mode" (i.e. making the removal temporary, like a filter)?
Yes, just use:
u = GraphView(g, directed=False)
GraphView(u, efilt=label_parallel_edges(u).fa == 0)
Works like a charm, thank you!
Best,
Tanguy
_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool