diff options
Diffstat (limited to 'src/graph.h')
| -rw-r--r-- | src/graph.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/graph.h b/src/graph.h new file mode 100644 index 0000000..3443c8f --- /dev/null +++ b/src/graph.h @@ -0,0 +1,20 @@ +#ifndef GRAPH_H_ +#define GRAPH_H_ + +#include <stddef.h> + +struct vertex { + size_t number; + struct vertex *next; +}; + +struct vertexList { + struct vertex *first; + struct vertex *last; +}; + +struct vertexList *vertexAlloc(size_t length); +void vertexAdd(struct vertexList *v, size_t toWhich, size_t whichOne); + +#endif + |
