pagerank icon indicating copy to clipboard operation
pagerank copied to clipboard

The logic of Parser seems not be right to me?

Open gaoyunhaii opened this issue 5 years ago • 2 comments

The main logic of the the parser is

for each line {
       source = ...

        while cur_source (cur_offset) }).unwrap();
            cur_source += 1;
        }
}

For a sample file:

0 1
0 2
1 2
2 3

The resulted offset will be [2, 3, 4, 4], but it seems should be [0, 2, 3, 4] ?

gaoyunhaii avatar Mar 30 '19 06:03 gaoyunhaii

On the road at the moment, but will investigate. The project is a bit old, so perhaps there is a lingering bug that should be fixed. The graph-map project is where the parse.rs and print.rs code I trust lives.

frankmcsherry avatar Mar 30 '19 09:03 frankmcsherry

OK, Got it. I will try graph-map first then. Thank you! :)

gaoyunhaii avatar Apr 01 '19 02:04 gaoyunhaii