24 lines
333 B
C
24 lines
333 B
C
|
#ifndef GRAPH_H
|
||
|
#define GRAPH_H
|
||
|
|
||
|
#include "../list/list_expand.h"
|
||
|
|
||
|
typedef struct GNode{
|
||
|
unsigned long long id;
|
||
|
void *value;
|
||
|
List *routes;
|
||
|
int if_setValue;
|
||
|
}GNode;
|
||
|
|
||
|
typedef struct route{
|
||
|
unsigned long long id;
|
||
|
double distance;
|
||
|
int if_setValue;
|
||
|
GNode from, to;
|
||
|
}Route;
|
||
|
|
||
|
GNode *initGNode(void);
|
||
|
Route *initRoute(void);
|
||
|
|
||
|
|
||
|
#endif
|