Displaying 2 results from an estimated 2 matches for "shortestpathlength".
Did you mean:
shortestpathlengths
2017 Jun 20
2
Problem with shortestPath in igraph and qgraph
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 the maximum the result is wrong. here is my code:
cen<-centrality(Q)
tmp3<-cen$ShortestPathLengths
shp<-matrix(1:ncol(tmp3),ncol(tmp3),1)for(i in ncol(tmp3)){
shp[i,]=max(tmp3[i,][tmp3[i,]!=Inf)}
when I display the valu of shp th...
2017 Jun 21
0
Problem with shortestPath in igraph and qgraph
...ofighi <tofighizahra at gmail.com> wrote:
>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 the maximum the result is wrong. here is my code:
>
>cen<-centrality(Q)
>
>tmp3<-cen$ShortestPathLengths
>shp<-matrix(1:ncol(tmp3),ncol(tmp3),1)for(i in ncol(tmp3)){
>shp[i,]=max(tmp3[i,][tmp3[i,]!=Inf)}
&g...