Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/adalisan/RGraphM
Browse files Browse the repository at this point in the history
  • Loading branch information
adalisan committed Aug 28, 2017
2 parents d8c40eb + 793b21c commit b9d175c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/graphm/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ int graph::load_graph(std::string fgraph_name, char ftype, char cformat, std::st
case 'A':
case 'a':
//matrix size
N = 0;
float N_read = 0;
char buf[1];
while (fgraph >> de) //.getline(buf,1))
{
N++;
N_read+=1;
};
N = sqrt(N);
N = sqrt(N_read);
int ierror = 1;
if (N > 0)
{
Expand Down

0 comments on commit b9d175c

Please sign in to comment.