I am looking for a specific value in “from_node” edge struct, how do I find it…I need to traverse all edges of adjList, How do I access that?
Thank you!
//this is just a draft
Struct Edge
{
Int from_node;
Int to_node;
Int weight;
String name;
}
In main ()
Egde e;
Vector <list<Edge> > adjList;
// I am looking for a specific value in “from_node” edge struct,
//how do I find it…I need to traverse all edges of adjList, How do I access that?
For (int i=0; i< adjList.size(); i++)
{
???
}