Function buildGraph working good;
Function on adjList working as expected;