Combinatorics: added copy(::Graph)#5930
Conversation
benlorenz
left a comment
There was a problem hiding this comment.
Seems reasonable, can you add a small test?
Maybe this should copy labelings and other graph maps as well, @antonydellavecchia ?
|
Tests are added. Not sure how copying of attributes are done. For example, the following works if But it will not work if Is there a way to check whether an object has attributes? Something like: |
|
So if the graph but you can do |
|
Ok you essentially would need to turn each something like |
|
What's the status of this PR? |
|
@fieker asks whether this should perhaps be Based on discussion in triage, it sounds to me that Beware: you actually need to implement (Of course we have not yet really discussed what |
|
@antonydellavecchia and I discussed this PR briefly, and we believe that functionally We will work on that at some point this week. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5930 +/- ##
==========================================
+ Coverage 84.21% 84.24% +0.02%
==========================================
Files 787 787
Lines 107376 107508 +132
==========================================
+ Hits 90432 90569 +137
+ Misses 16944 16939 -5
🚀 New features to boost your workflow:
|
Many operations for graphs work inplace, so I think it would be nice if there was a
copycommand for graphs: