To start playing with Julia I'm trying to import a graph from a 
NetworkX-generated JSON to the Graphs.jl package.

The full gist is here <https://gist.github.com/ohadle/11323991>, but 
basically I have an array of ExVertex and an array of ExEdge, and try to 
call graph(). I get the following error:

julia> g = graph(new_vs, new_es, is_directed=g_dict["directed"])
ERROR: assertion failed: edge_index(e) == num_edges(g) + 1
 in add_edge! at /home/olevinkr/.julia/v0.3/Graphs/src/graph.jl:83
 in graph at /home/olevinkr/.julia/v0.3/Graphs/src/graph.jl:42

Looking at 
graph()<https://github.com/JuliaLang/Graphs.jl/blob/master/src/graph.jl#L38>, 
if I just run the first couple of lines it seems to create the graph, but 
then it tries to add all the edges to the graph and fails.

Am I using graph() incorrectly?

Thanks!

Reply via email to