Huge performance difference between using linkedlist and array for constructing a graph with adjacency list
问题 i'm working on an assignment about huge graphs and i have to construct the main graph (as adjacency list) from reading a .txt file which nearly has 5 billion lines.Actually, graph consists of 870k vertices. Whatever, i realized that there is a huge time difference ( more than 2 hours) between my first and second implementation. I'm curious about why there is such an unnegligible difference between these two implementations. Here you can see the main simple code about reading the txt file and