NetworkX

Previous topic

astar_path_length

Next topic

double_edge_swap

SwapΒΆ

Swap edges in a graph.

double_edge_swap(G[, nswap, max_tries]) Swap two edges in the graph while keeping the node degrees fixed.
connected_double_edge_swap(G[, nswap]) Attempt nswap double-edge swaps on the graph G.