Add ScaffoldNetwork to csharp (#3289)

This commit is contained in:
jones-gareth
2020-07-13 06:48:34 -06:00
committed by GitHub
parent 947144ab6d
commit 0b97153a79
2 changed files with 10 additions and 0 deletions

View File

@@ -21,3 +21,10 @@ typedef std::vector<unsigned> UINT_VECT;
%include <GraphMol/ScaffoldNetwork/ScaffoldNetwork.h>
%template(createScaffoldNetwork) RDKit::ScaffoldNetwork::createScaffoldNetwork<std::vector<boost::shared_ptr<RDKit::ROMol>>>;
// this is needed for the csharp wrappers to access count values as it does
// not seem to be possible to wrap std::vector<unsigned>
%extend RDKit::ScaffoldNetwork::ScaffoldNetwork {
unsigned int nodeCount(unsigned int nodeNumber) {
return $self->counts.at(nodeNumber);
}
}