Fix directed_graph::swap