Refactored GraphAdjList and NetworkGraph