public final class Functions extends Object
| Modifier and Type | Method and Description |
|---|---|
static Graph |
atomBasedDBStereo(Graph g)
Convert any directional bond based stereo configuration to atom-based
specification.
|
static Graph |
bondBasedDBStereo(Graph g)
Convert a graph with atom-based double-bond stereo configuration to
bond-based specification (direction UP and DOWN bonds).
|
static Graph |
canonicalize(Graph g,
long[] labels)
Apply the labeling
labels[] to the graph g. |
static Graph |
collapse(Graph g)
Collapse a graph with specified atom properties to one with organic
subset atoms.
|
static Graph |
expand(Graph g)
Expand a graph with organic subsets to one with specified atom
properties.
|
static Graph |
normaliseDirectionalLabels(Graph g) |
static Graph |
randomise(Graph g)
Randomise the atom order of the provided chemical graph.
|
static Graph |
reverse(Graph g)
Reverse the atom order of the provided chemical graph.
|
public static Graph randomise(Graph g)
g - chemical graphpublic static Graph reverse(Graph g)
g - chemical graphpublic static Graph atomBasedDBStereo(Graph g)
g - chemical graph graphpublic static Graph bondBasedDBStereo(Graph g)
g - chemical graph graphpublic static Graph expand(Graph g)
g - a chemical graphpublic static Graph collapse(Graph g)
g - a chemical graphpublic static Graph normaliseDirectionalLabels(Graph g) throws uk.ac.ebi.beam.InvalidSmilesException
public static Graph canonicalize(Graph g, long[] labels)
labels[] to the graph g. The labels
are converted to a permutation which is then applied to the Graph and
rearrange it's vertex order.g - the graph to permutelabels - the vertex labels - for example from a cannibalisation
algorithmCopyright © 2017. All rights reserved.