int w =edge[0];
int x =edge[1];
int y =edge[2];
Doubt in initializing edges
hello @adarshsingh2k
edge is vector .
where edge[0] is holding weight
edge[1] and edge[2] are holding the corners of the graph edge.
and in this intialisation we are just putting weight in variable w and the two corners in x and y
like how can we do this in vectors
vectors are linke array only. we can use indexing on vector like we use on array.
refer ur stl playlist for better clarity over vector concepts
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.