refactored webgraph to remove intermediate object of adjacenyList<T>