Privacy
An open-source, flexible 3D physical simulation framework
tsort.h
Go to the documentation of this file.
1 /* tsort - topological sort.
2  Copyright (C) 1998-2013 Free Software Foundation, Inc.
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>. */
16 
17 /* Written by Mark Kettenis <kettenis@phys.uva.nl>. */
18 
19 /* The topological sort is done according to Algorithm T (Topological
20  sort) in Donald E. Knuth, The Art of Computer Programming, Volume
21  1/Fundamental Algorithms, page 262. */
22 
23 void add_relation(unsigned long id1, unsigned long id2);
24 int tsort (void);
25 unsigned long* get_sorted_ids(void);
int tsort(void)
Definition: tsort.c:437
unsigned long * get_sorted_ids(void)
Definition: tsort.c:518
void add_relation(unsigned long id1, unsigned long id2)
Definition: tsort.c:423