fix #947

updated with some bug fix of PruneFloatingIslands build graph model