Root/
| 1 | /* |
| 2 | * tsort.h - Topological sort |
| 3 | * |
| 4 | * Written 2010 by Werner Almesberger |
| 5 | * Copyright 2010 by Werner Almesberger |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | */ |
| 12 | |
| 13 | #ifndef TSORT_H |
| 14 | #define TSORT_H |
| 15 | |
| 16 | struct node; |
| 17 | struct tsort; |
| 18 | |
| 19 | struct node *add_node(struct tsort *tsort, void *user, int decay); |
| 20 | void add_edge(struct node *from, struct node *to, int priority); |
| 21 | |
| 22 | struct tsort *begin_tsort(void); |
| 23 | void **end_tsort(struct tsort *tsort); |
| 24 | |
| 25 | #endif /* !TSORT_H */ |
| 26 |
Branches:
master
