Return true for a tree, false for anything else. */
| 69 | /** Return true for a tree, false for anything else. |
| 70 | */ |
| 71 | static int check_tree(Node u) |
| 72 | { |
| 73 | Edge e; |
| 74 | u->visited = 1; |
| 75 | for (e = u->outgoing; e; e = e->next_adj_out) |
| 76 | if (e->to->visited || !check_tree(e->to)) |
| 77 | return 0; |
| 78 | return 1; |
| 79 | } |
| 80 | |
| 81 | static void show_spt_aux(Node u, unsigned indent, FILE *fp) |
| 82 | { |