Hello everybody,
I need to create a library of algorithms. I do no want to instanciate an object of the class everytime, i just would like to call the algorithm.
I.e. My class is called "algorithms", i would like to call algorithms.shortestPath(input).
What's the Pythonic way of doing this? I could create a class with only static methods, would that be a good solution?
Thanks
I need to create a library of algorithms. I do no want to instanciate an object of the class everytime, i just would like to call the algorithm.
I.e. My class is called "algorithms", i would like to call algorithms.shortestPath(input).
What's the Pythonic way of doing this? I could create a class with only static methods, would that be a good solution?
Thanks