igraph 1.0 leads to "error in x$dist operator is invalid for atomic vectors" for cnapath

Issue #252 resolved
Former user created an issue

Hi, I upgraded my igraph package from 0.7 to igraph_1.0 and then found it gave error in the title when I used cnapath:

path <- cnapath(nets[[10]], from=61, to=200,k=50)

I'm guessing this is something to do with the output the new version of igraph returns to cnapath from the shortest.path function? I downgraded to 0.7 and it all works fine again.

Cheers,

Alistair

Comments (6)

  1. Xinqiu Yao

    Hi,

    The cnapath() function has been updated to adapt igraph v1.0 (see this commit)

    To get this update, download the latest version of bio3d from the Master branch (See an instruction here).

    Let me know if you have any problem!

  2. Log in to comment