All seems to be working. Node merging still much to slow for complicated graphs