Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct _node{
- int nr;
- float dist;
- struct _node* next;
- }*Node;
- typedef struct _list{
- int nr_varf;
- Node l_adiacenta;
- struct _list* next;
- }*List;
- typedef struct _graph{
- int nr_varfuri;
- List lista;
- }*Graph;
- //Varianta a 2-a cu vector de liste :P
- typedef struct _node{
- int nr;
- float dist;
- struct _node* next;
- }*Node;
- typedef struct _graph{
- int nr_varfuri;
- Node* lista; //aloci dinamic memoria pentru vector in initGraph
- }*Graph;
Advertisement
Add Comment
Please, Sign In to add comment