Index: pcb-mincut/graph.c =================================================================== --- pcb-mincut/graph.c (revision 33395) +++ pcb-mincut/graph.c (revision 33396) @@ -90,6 +90,7 @@ } } +#ifdef DEBUG_GR int gr_draw(gr_t *g, const char *name, const char *type) { char *cmd; @@ -129,6 +130,7 @@ pclose(f); return 0; } +#endif int gr_node_edges(gr_t *g, int node) { Index: pcb-mincut/graph.h =================================================================== --- pcb-mincut/graph.h (revision 33395) +++ pcb-mincut/graph.h (revision 33396) @@ -90,8 +90,10 @@ /* print the connection matrix */ void gr_print(gr_t *g, FILE *f, const char *prefix); +#ifdef DEBUG_GR /* draw graph using graphviz/dot */ int gr_draw(gr_t *g, const char *name, const char *type); +#endif /* return total number of edges of a node */ int gr_node_edges(gr_t *g, int node);