Naive edge/vertex removal for GenericGraphs#86
Naive edge/vertex removal for GenericGraphs#86tcfuji wants to merge 5 commits intoJuliaAttic:masterfrom
Conversation
|
The Julia testing framework is documented here, but it's pretty straightforward - take a look at the files in the test directory. And I'd much rather you include tests in this PR, so I can see that your code works from the state of the Travis build :-) Please write the tests and push them up to your |
I'm not sure that we should ever give them the choice not to remove edges touching a vertex that's being removed! @lindahua? |
|
@pozorvlak Thanks for accommodating me (I'm sure it's evident I'm new to all this). Is there an expedient way to do tests in Julia locally without relying on Travis? Right now I'm getting the following: $ julia runtests.jl
running test/edgelist.jl ...
running test/adjlist.jl ...
running test/inclist.jl ...
running test/graph.jl ...
ERROR: remove_edge! not defined
while loading /Users/tf/Desktop/MyGitProjects/Forks/Graphs.jl/test/graph.jl, in expression starting on line 136
while loading /Users/tf/Desktop/MyGitProjects/Forks/Graphs.jl/runtests.jl, in expression starting on line 20If possible, I'd like to run some tests locally before pushing the changes into my github repository. |
|
How can an edge be there when one of its vertex no longer exists. I think the behavior of removing an vertex is to remove the vertex together with all incident edges. |
|
I'll edit this PR later to just remove incident edges when running |
|
Huh, that's weird - the On Wed, May 7, 2014 at 11:08 PM, tfgit notifications@github.com wrote:
|
If anyone could point me to some references on how to do testing for Julia packages, I'll include the tests in another PR. Also, should we give users a choice to remove edges including
vwhen runningremove_vertex!(g, v)?I'll also update the documentation if all goes well.