00001
00002
00003
00004
00005
00006 #ifndef _RD_SUBGRAPHUTILS_H_
00007 #define _RD_SUBGRAPHUTILS_H_
00008
00009 #include "Subgraphs.h"
00010 #include <boost/tuple/tuple.hpp>
00011
00012 namespace RDKit{
00013 class ROMol;
00014 namespace Subgraphs {
00015 typedef boost::tuples::tuple<double,double,double> PathDiscrimTuple;
00016 PathDiscrimTuple CalcPathDiscriminators(const ROMol &mol,const PATH_TYPE &path,
00017 bool useBO=true);
00018 PATH_LIST uniquifyPaths (const ROMol &mol, const PATH_LIST &allPathsb,
00019 bool useBO=true,double tol=1e-8);
00020
00021
00022
00023 PATH_TYPE bondListFromAtomList(const ROMol &mol, const PATH_TYPE &atomIds);
00024
00025
00026
00027
00028
00029
00030
00031 ROMol *PathToSubmol(const ROMol &mol, const PATH_TYPE &path,
00032 bool useQuery,
00033 std::map<int,int> &atomIdxMap);
00034 ROMol *PathToSubmol(const ROMol &mol, const PATH_TYPE &path,
00035 bool useQuery=false);
00036 }
00037 }
00038
00039
00040 #endif