remove_self_loops

remove_self_loops#

graph_tool.generation.remove_self_loops(g)[source]#

Remove all self-loops edges from the graph.

Parallel implementation.

If enabled during compilation, this algorithm will run in parallel using OpenMP. See the parallel algorithms section for information about how to control several aspects of parallelization.