ZE-Standard-Libraries/graph/graph.h

24 lines
333 B
C
Raw Normal View History

2018-07-18 04:44:13 +00:00
#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