data structures - How do I make edge(v1, v2) list in C++ without STL -


i'm trying make list of edge vertex1 , vertex2.

i don't want use stl library. i'm thinking of linked list edge information. there better way represent edge list without stl?

you should use standard library when possible. if have restriction may have several ways

  1. using 2 parallel array.
  2. using array of structure.
  3. using linked list

you may declare structure like

struct edge{      int vertex1;     int vertex2;  } 

Comments