Line | |
---|
1 | #include "util.h" |
---|
2 | #include "list.h" |
---|
3 | #include "array.h" |
---|
4 | #include "st.h" |
---|
5 | #include "graph.h" |
---|
6 | |
---|
7 | typedef struct graph_struct_int { |
---|
8 | gGeneric user_data; |
---|
9 | lsList v_list; |
---|
10 | lsList e_list; |
---|
11 | } graph_t_int; |
---|
12 | |
---|
13 | typedef struct vertex_struct_int { |
---|
14 | gGeneric user_data; |
---|
15 | graph_t_int *g; |
---|
16 | lsList in_list; |
---|
17 | lsList out_list; |
---|
18 | int id; |
---|
19 | lsHandle handle; /* for quick deletion in the graph v_list */ |
---|
20 | } vertex_t_int; |
---|
21 | |
---|
22 | typedef struct edge_struct_int { |
---|
23 | gGeneric user_data; |
---|
24 | vertex_t_int *from; |
---|
25 | vertex_t_int *to; |
---|
26 | int id; |
---|
27 | lsHandle handle; /* for quick deletion in the graph e_list */ |
---|
28 | } edge_t_int; |
---|
29 | |
---|
30 | EXTERN void del_from_list(lsList, lsGeneric); |
---|
31 | extern int g_unique_id; |
---|
Note: See
TracBrowser
for help on using the repository browser.