canonise_graph
and remove_duplicates
.
rename_nodes(graph, newnames = list())
list(old = "new")
. Nodes not listed will keep
their old name, unless no list is given at all, in which case the leaves keep their old
names while the inner nodes get new standardised names.