just new to graphs in c++ stl sorry if its a beginner level question. please tell how can i set the size of vectors of list
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
class my_graph {
public:
int vertices;
list<pair<int, int>> *adjacency_list;
vector<list<pair<int, int>>> adjacencyList;
my_graph(int ver) {
this->vertices = ver;
adjacency_list = new list<pair<int, int>>[vertices];
// what should i type here to make the size of
// vector type adjacencyList
// to user defined size in this constructor.
// just like i did for list type adjacency_list
}
};