Chemical Descriptors Library: search_substructure()
|
Search Substructure
|
|
search_substructure()
Prototype
template <class Molecule, class EdgeLabeling, class VertexLabeling>
bool search_substructure(const Molecule& substr, const Molecule& mol,
EdgeLabeling el, VertexLabeling vl);
Arguments
Parameter | Description | Models |
substr |
The submolecule to search for |
CDL molecule |
mol |
The molecule to search in |
CDL molecule |
el |
The edge labeling (look at Ullmann algorithm) |
Binary predicate accepting two edge_descriptors |
vl |
The vertex labeling (look at Ullmann algorithm) |
Binary predicate accepting two vertex_descriptors |
Description
This function applies Ullmann's to search the molecule substr into
mol. The labeling policies are parametrized, and are passed as parameters.
Definition
#include <morpho/cdl/molecule/algorithms/mol_algo.hpp>
References
Copyright © Vladimir Josef Sykora & Morphochem AG 2003
Copyright © Vladimir Josef Sykora 2003-2006