kolaczyk / sand

Statistical Analysis of Network Data with R, 2nd Edition
294 stars 192 forks source link

error when using str() #8

Open stone-d-chen opened 6 years ago

stone-d-chen commented 6 years ago

Running the chapter 2 code block

g <- graph.formula(1-2, 1-3, 2-3, 2-4, 3-5, 4-5, 4-6, 4-7, 5-6, 6-7)

str(g)

I get the following error

Error in adjacent_vertices(x, i, mode = if (directed) "out" else "all") : At iterators.c:759 : Cannot create iterator, invalid vertex id, Invalid vertex id

Let me know if you need more information, not sure what is standard to submit with an issue.

Thanks!

bwcastillo commented 5 years ago

U can use print_all(g)