implemented data structure
This commit is contained in:
31
src/routing4SITA.h
Normal file
31
src/routing4SITA.h
Normal file
@ -0,0 +1,31 @@
|
||||
#ifndef ROUTING4SITA_H
|
||||
#define ROUTING4SITA_H
|
||||
|
||||
|
||||
#define MAX_CHILDREN 3
|
||||
|
||||
|
||||
typedef struct node NODE_t;
|
||||
|
||||
struct node {
|
||||
int id;
|
||||
int nodescount;
|
||||
NODE_t* nodesnext[MAX_CHILDREN];
|
||||
int nodescost[MAX_CHILDREN];
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* ROUTING4SITA_H */
|
Reference in New Issue
Block a user