I am trying to declare the adjacency list using list std with the following line.
list<Node> *adjList;
In the constructor, I found out that these two initialization is possible.
adjList = new list<Node>[V];
adjList = new list<Node>(V);
where V is the total number of Vertex in the Graph.
My question is
What is the difference between [V]
and (V)