Re: [R] Problem with shortestPath in igraph and qgraph

2017-06-21 Thread Zahra Tofighi
Guide mentioned in the footer to avoid other posting > pitfalls. > > [1] http://stackoverflow.com/questions/5963269/how-to-make- > a-great-r-reproducible-example > > [2] http://adv-r.had.co.nz/Reproducibility.html > > [3] https://cran.r-project.org/web/packages/reprex/index.ht

[R] Problem with shortestPath in igraph and qgraph

2017-06-20 Thread Zahra Tofighi
hello, I have a graph and i use qgraph package to calculate centrality parameters. Now I want to know the maximum value of shortest path for each vertex with discarding the Inf value in short pathes. For this I use the ShortestPathLengths of centrality function in qgraph. but when I want to get

[R] error for using igraph library: 'edges' must be numeric or character

2017-06-18 Thread Zahra Tofighi
hello, i want to use igraph for drawing graph of my data. First time i try do it and it was successful. but now i want to test again i got this error: "edges must be numeric or character". this is my edge list(this is output from R): FromTo 1 US20100331312 2