Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use other algorithms with Etree? #8

Open
kienerj opened this issue Oct 18, 2019 · 1 comment
Open

How can I use other algorithms with Etree? #8

kienerj opened this issue Oct 18, 2019 · 1 comment

Comments

@kienerj
Copy link

kienerj commented Oct 18, 2019

Again this library looks interesting. While playing around and reading tutorial I wasn't able to figure out how to run ExplorationTree with custom operations but using different than classic algorithm.

@martin-sicho
Copy link
Member

Hi, thanks for the interest in the library! At the moment, the implemented algorithms actually do not have hooks for custom operations. As I understand it, you would like to plug-in your own operations to some of the algorithms implemented in molpher.algorithms, is that correct? Possibly, define them for use in a simple script similar to this one from the docs?

This is more of a note to self, but:

I think that this should be simple to implement so if you let me know in more detail what you would like to accomplish, I think I could add this support to all algorithms. You can also check out some of the code in the molpher.algorithms. Every algorithm has a "pathfinder", which is a class that implements the search. The whole molpher.algorithms package is a little messy because it is just a result of me doing some quick prototyping, but eventually I would like to turn this into something more usable so this issue could be a nice way to start the process. It would be nice if all algorithms had a common base class with useful functionality such as the BasicPathfinder, which is a base class for the classic pathfinder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants