ZE-Standard-Libraries/graph/graph.h
2018-07-30 17:45:33 +08:00

25 lines
316 B
C

#ifndef GRAPH_H
#define GRAPH_H
#include "../list/list_expand.h"
typedef struct GNode{
SID *s_id;
void *value;
List *routes;
int if_setValue;
}GNode;
typedef struct route{
SID *s_id;
double distance;
int if_setValue;
GNode from, to;
}Route;
GNode *initGNode(void);
Route *initRoute(void);
#endif