diff options
author | 2001-03-26 22:53:33 +0000 | |
---|---|---|
committer | 2001-03-26 22:53:33 +0000 | |
commit | 2b8be3d0f6807138aa6c6ade82d394da218e7434 (patch) | |
tree | 9446a0e671021f2b7d2f8282648c15867c651904 /usr.bin/ssh/ssh-agent.c | |
parent | fix scsi_done calling, locking, quartz_done (diff) | |
download | wireguard-openbsd-2b8be3d0f6807138aa6c6ade82d394da218e7434.tar.xz wireguard-openbsd-2b8be3d0f6807138aa6c6ade82d394da218e7434.zip |
Replacement for original tsort.
The old code suffers from a few defects:
- it does not even implement the standard optimal topological sort
algorithm. It's much slower.
- its longest cycle computation is completely bogus.
This is clean-slate code, that does implement the actual standard optimal
topological sort, together with a correct graph traversal to find longest
cycles.
It does also feature a `stable tsort' mode, where it uses a heap to yield
the least disturbed permutation of input nodes that satisfies the ordering
constraints (in particular, try tsort -f).
Thanks to the nature of the problem, the actual output won't exactly match
the old one, but it does pass the regression suite (and it is a topological
sorter).
Ok millert@
Diffstat (limited to 'usr.bin/ssh/ssh-agent.c')
0 files changed, 0 insertions, 0 deletions