2 * stats.c - various routines to do stats on the key graph
4 * Jonathan McDowell <noodles@earth.li>
6 * Copyright 2002 Project Purple
16 key_getsigs - get the sigs for a key.
17 key_getsigns - get the keys a key signs. */
25 #include "keystructs.h"
29 * initcolour - Clear the key graph ready for use.
30 * @parent: Do we want to clear the parent pointers too?
32 * Clears the parent and colour information on all elements in the key
35 void initcolour(bool parent);
38 * findpath - Given 2 keys finds a path between them.
39 * @have: The key we have.
40 * @want: The key we want to get to.
42 * This does a breadth first search on the key tree, starting with the
43 * key we have. It returns as soon as a path is found or when we run out
44 * of keys; whichever comes sooner.
46 unsigned long findpath(struct stats_key *have, struct stats_key *want);
49 * dofindpath - Given 2 keys displays a path between them.
50 * @have: The key we have.
51 * @want: The key we want to get to.
52 * @html: Should we output in html.
54 * This does a breadth first search on the key tree, starting with the
55 * key we have. It returns as soon as a path is found or when we run out
56 * of keys; whichever comes sooner.
58 void dofindpath(uint64_t have, uint64_t want, bool html);
60 struct stats_key *furthestkey(struct stats_key *have);
62 #endif /* __STATS_H__ */