i declared this custom stl vector to take input of a graph to implement the bellmanford algorithm. But i an not understanding how i can take input of the declared stl vector. The declaration code is given below. I need help for understanding the input procedure of this vector. please guide me in this regard.
#include<bits/stdc++.h>
using namespace std;
struct edge{
int a, b, cost;
};
vector<edge> e;
int nodes, edges;
int main(){
cin >> nodes >> edges;
}