-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Graph[] #600
Graph[] #600
Conversation
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.
Overall good. I'm very happy to see graphs being finally added.
Quite a few missing edge cases, in particular the empty graph.
It's not clear which parts of networkx require numpy, certainly some of the layout stuff does. A defensive approach would be to require numpy for _NetworkXBuiltin
but maybe we don't need to since most of it works without numpy.
|
||
|
||
class UndirectedEdge(Builtin): | ||
pass |
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.
Docs missing. Maybe a good place to test the parsing of <->
.
I'd tentatively like to suggest including this in 1.0 but if it's not ready then that's okay too. |
#> PathGraphQ[Graph[{1 -> 2, 2 -> 1}]] | ||
= True | ||
#> PathGraphQ[Graph[{}]] | ||
= False |
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.
this test is doubled up
Note: Now that #604 is merged the graph tests should now run on Travis. |
Let's leave this for the next release. |
5dc432b
to
bda3939
Compare
@poke1024 Hey, would you be willing to rebase this branch so that we can finally merge it? |
@poke1024 Thanks for the rebase! It looks like most failing tests are caused by |
@GarkGarcia I'm currently looking into this. |
All tests have passed, so I believe we're good.
Great! Thanks for your contribution! |
Still a work in progress, but already usable.