RDKit
Open-source cheminformatics and machine learning.
|
functionality for finding subgraphs and paths in molecules More...
#include <RDGeneral/export.h>
#include <vector>
#include <list>
#include <map>
#include <unordered_map>
Go to the source code of this file.
Namespaces | |
namespace | RDKit |
Std stuff. | |
Typedefs | |
typedef std::vector< int > | RDKit::PATH_TYPE |
typedef std::list< PATH_TYPE > | RDKit::PATH_LIST |
typedef PATH_LIST::const_iterator | RDKit::PATH_LIST_CI |
typedef std::map< int, PATH_LIST > | RDKit::INT_PATH_LIST_MAP |
typedef INT_PATH_LIST_MAP::const_iterator | RDKit::INT_PATH_LIST_MAP_CI |
typedef INT_PATH_LIST_MAP::iterator | RDKit::INT_PATH_LIST_MAP_I |
functionality for finding subgraphs and paths in molecules
Difference between subgraphs and paths : Subgraphs are potentially branched, whereas paths (in our terminology at least) cannot be. So, the following graph:
C--0--C--1--C--3--C | 2 | C
has 3 subgraphs of length 3: (0,1,2),(0,1,3),(2,1,3) but only 2 paths of length 3: (0,1,3),(2,1,3)
Definition in file Subgraphs.h.