g = Functions.renumberAtomMaps(g); g = Functions.normaliseDirectionalLabels(g);
/** * Reverse the atom order of the provided chemical graph. * * @param g chemical graph * @return a copy of the original graph with the order of the atoms * reversed */ public static Graph reverse(Graph g) { return g.permute(reverse(g.order())); }
/** * Randomise the atom order of the provided chemical graph. * * @param g chemical graph * @return a copy of the original graph with the order of the atoms * randomised */ public static Graph randomise(Graph g) { return g.permute(random(g.order())); }