Root/tsort.h

Source at commit 8a1a3103964533b0d517a29312ddeabdab1d6271 created 4 years 7 months ago.
By Werner Almesberger, inst.c (find_point_vec): correct indentation
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
16struct node;
17struct tsort;
18
19struct node *add_node(struct tsort *tsort, void *user, int decay);
20void add_edge(struct node *from, struct node *to, int priority);
21
22struct tsort *begin_tsort(void);
23void **end_tsort(struct tsort *tsort);
24
25#endif /* !TSORT_H */
26

Archive Download this file

Branches:
master



interactive