2018-07-18 04:44:13 +00:00
|
|
|
#ifndef GRAPH_H
|
|
|
|
#define GRAPH_H
|
|
|
|
|
|
|
|
#include "../list/list_expand.h"
|
|
|
|
|
|
|
|
typedef struct GNode{
|
2018-07-30 09:45:33 +00:00
|
|
|
SID *s_id;
|
2018-07-18 04:44:13 +00:00
|
|
|
void *value;
|
|
|
|
List *routes;
|
|
|
|
int if_setValue;
|
|
|
|
}GNode;
|
|
|
|
|
|
|
|
typedef struct route{
|
2018-07-30 09:45:33 +00:00
|
|
|
SID *s_id;
|
2018-07-18 04:44:13 +00:00
|
|
|
double distance;
|
|
|
|
int if_setValue;
|
|
|
|
GNode from, to;
|
|
|
|
}Route;
|
|
|
|
|
|
|
|
GNode *initGNode(void);
|
|
|
|
Route *initRoute(void);
|
|
|
|
|
|
|
|
|
2018-07-23 04:59:16 +00:00
|
|
|
#endif
|