-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cython-base' to add basic Cython Adjacency Mapping grap…
…h (see issue #2)
- Loading branch information
Showing
9 changed files
with
20,512 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# ignore c files generated by Cython | ||
*.c linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from ...abc import Graph as GraphABC | ||
from ..decorator import boundable, undirectable | ||
|
||
from .plain_graph import CythonGraph as _PlainGraph | ||
|
||
|
||
@boundable | ||
@undirectable | ||
class CythonGraph(GraphABC): | ||
""" | ||
Optimised Cython Graph Implementations | ||
.. note:: This is an abstract class that merely picks the most suitable implementation. | ||
""" | ||
def __new__(cls, *args, **kwargs): | ||
return _PlainGraph(*args, **kwargs) | ||
|
||
|
||
CythonGraph.register(_PlainGraph) |
Oops, something went wrong.