-
Notifications
You must be signed in to change notification settings - Fork 4
Add VertexDataGraph and EdgeDataGraph as concrete subtypes of AbstractVertexOrEdgeDataGraph
#121
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
Open
jack-dunham
wants to merge
23
commits into
main
Choose a base branch
from
jd/vertex-edge-datagraph
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
fc88457
Add `AbstractVertex/EdgeDataGraph` const types.
jack-dunham 5b628ca
Add some code comments.
jack-dunham fa19f5d
Make `AbstractVertexOrEdgeDataGraph` an abstract type; add concrete t…
jack-dunham 0afcc35
Rename file.
jack-dunham b2e39d3
Tests and bug fixes.
jack-dunham f60063c
Version bump.
jack-dunham f704028
Fix regressions; add explicit imports.
jack-dunham b09f65f
Used `@eval` loop instead of union type to define Graph/DiGraph share…
jack-dunham 1a060f9
Fix bug in `has_edge` definition; improve test converage.
jack-dunham 8a890c3
Allow `setindex!` to upsert edges if vertices are present in `Abstrac…
jack-dunham 1fc06be
Canonize `if ...; throw(); else ...; end` code patterns to `if ...; t…
jack-dunham cb16df3
Change `Type{<:Nothing}` to Type{Nothing}`.
jack-dunham 41a4b5d
Improve code comments explaining `similar_graph(graph, VD, ED)` behav…
jack-dunham 442deb9
Fix `similar_graph` fallbacks for `AbstractVertex/EdgeDataGraph` to r…
jack-dunham afbd747
Switch order of type params in `AbstractVertexOrEdgeDataGraph`.
jack-dunham 8b1044e
Increase strictness of `DataView` key setting.
jack-dunham 6fff2ce
Move vertex checking to `insert!_datagraph`.
jack-dunham 9141efa
Fix `isinsertable` definitions.
jack-dunham fa73fc7
Add `forest_cover_edge_sequence` fallback for `AbstractDataGraph`
jack-dunham aae56ff
Interface clean up; fixes; tests
jack-dunham 407b83f
Improve test coverage
jack-dunham 9d7ff7b
Add tests for `copy`; deabstract `==` method.
jack-dunham fae5876
More tests and fixes.
jack-dunham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this needed? Shouldn't the generic definition "just work"?
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.
No because it's going to try and remove edges and that might not be defined. It is easier to just construct a dummy named graph as all this function does is return a list of edges.
Really it should return a list of edges of the same type as the input graph, though so maybe this needs to be rethought.
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.
I see. Probably that means that function should be rewritten to "just work" even for
AbstractDataGraph, i.e. at worst it could first calladd_edges!(NamedGraph(vertices(graph)), edges(graph))and then run the rest of the function.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.
To be honest I accidentally introduced an infinite method dispatch loop w.r.t this function in NamedGraphs so I need to make another PR anyway...