MCPcopy Index your code
hub / github.com/IBM/Project_CodeNet / check_tree

Function check_tree

tools/json-graph/src/jgf2spt.c:71–79  ·  view source on GitHub ↗

Return true for a tree, false for anything else. */

Source from the content-addressed store, hash-verified

69/** Return true for a tree, false for anything else.
70*/
71static 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
81static void show_spt_aux(Node u, unsigned indent, FILE *fp)
82{

Callers 1

show_sptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected