Basic working graph with no searches (uses adjacency list instead of matrix, and linkedlist for storing adjacent vertices