visual studio - Igraph eigenvector centrality Run-Time error c++ -


I have written the program on C ++ which needs to generate the graph and calculate some of the measures. I am working with Visual Studio 2013 and IGraph Library. At this point I can create articles from custom information and calculate some metrics like middle and proximity centricity, but when I try to calculate eigenvector centrality The program crashes and shows me this message:

"Run-time check failure # 3 - Variable 'tgetv0' is being used without being started."

Use of tgetv0 variable Igraph within dgetv.c the source. Here is my code:

  zero GraphObject :: calcEigen () {igraph_arpack_options_t option; Igraph_real_t value; Igraph_vector_t Weight; Igraph_vector_init (and weight, igraph_ecount (& amp; cgraph)); // cGraph is already built in Igraph_vector_init (& amp; eigenRes, igraph_vcount (& amp; cgraph)); // All .. race igraph_vector_t headers are declared in igraph_vector_init (& betweennesRes, 0); Igraph_vector_init (and adjacent, 0); Igraph_arpack_options_init (& amp; option); Igraph_betweenness (and cGraph, and Binensaras, igraph_vss_all (), 0, 0, 1); Igraph_closeness (and cGraph, and adjacent, igraph_vss_all (), IGRAPH_ALL, 0, 1); Igraph_eigenvector_centrality (and cGraph, and eigenRes, and values, 0, 1, and weight, and options); }  

Proximity and hardness are correctly calculated "coteted" but crashes at eigenvector function.

Documentation, Internet and debugger I cant figure which is the problem, especially when I saw the example code in the document (copy / paste) and did the same thing as whether it is a library or example problem, I forget Am I

When I wear a vector and then call Iigraph_null (and weight), it works but all the results of eagenvalues ​​are 1, and this is the wrong result. What am i doing wrong Let us assume that the visual studio is correct and we actually have a name with tgetv0

used by the unused I'm scanning the source code of igraph and it seems that there are two places where this can actually be the case. One of these is in src / lapack / dnaupd.c , the second one is in src / lapack / dsaupd.c . Both of these files were changed from Fortran using f2c , so it is difficult to say whether the issue was present in the original Fortran code or whether it was introduced during the conversion or not. Either way, you can easily fix it by looking at that line where tgetv0 is replaced by src / lapack / dnaupd.c and src / lapack / Dsaupd has been announced. C and it started in the value of 0. In my version, lines to change are in line src / lapack / dnaupd.c in line 486 and src / lapack in line 482 /dsaupd.c .

Please add a comment to confirm that the solution works for you or not - if it works, then I will send the patch to the igraph source tree.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -