-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Refactor Graph types for extensibility #2240
Conversation
Looks reasonable at a glance... |
Ready to review and merge. |
holoviews/element/graphs.py
Outdated
@@ -98,6 +119,10 @@ class Graph(Dataset, Element2D): | |||
kdims = param.List(default=[Dimension('start'), Dimension('end')], | |||
bounds=(2, 2)) | |||
|
|||
_node_type = Nodes | |||
|
|||
_edge_type = EdgePaths |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if this really needs to be private. It might be useful information for users in general though only advanced users should try setting it...
Looks like a sensible generalization though I would consider using |
No objection, I've pushed the change. |
Looks good, happy to merge when the tests are green. |
Merging. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Some small amount of refactoring for
Graph
code to make it easier for extension libraries to subclass and extendGraph
elements. In particular GeoViews will offer Graph and TriMesh elements and these changes are required to make that work.