Skip to content

Error in str.igraph for code 2.4 - Can't proceed using N #6

@Gooseus

Description

@Gooseus

> N <<< 2.4 str(g) 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

Searching for this error turns up this StackOverflow post - https://stackoverflow.com/questions/46137227/r-str-gives-unusual-return-using-igraph

It seems that as of igraph 1.1.1 that str() is defunct and you need to use print_all(g) instead of str(g), which gives the correct output for 2.4.

However, there doesn't seem to be a way to skip over a code section within a chapter using N, so the rest of the code needs to be manually entered.

I would recommend updating the code for 2.4 and also implementing a function for skipping a code section or jumping directly to a code section.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions