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
- using 2 parallel array.
- using array of structure.
- using linked list
you may declare structure like
struct edge{ int vertex1; int vertex2; }
Comments
Post a Comment