Closed maxfischer2781 closed 5 years ago
Oops, commits reference issue #4 by accident.
graphi.operator
is now a module containing the neighbours
and density
operators. The graphi.operator.interface
has been removed. singledispatch
is available as graphi.operator.singledispatch
.
The standard library includes a
singledispatch
decorator for overloading functions to generic functions. This would be suitable as a replacement for the custom interface introduced in #1 .Aside from being standard library,
singledispatch
has the advantage of keeping even Cython classes open for extension. There is a backport available that covers all versions supported bygraph
.