24 #include <sys/types.h>
46 int main(
int argc,
char **argv)
60 GNO_OPTION(
"o",
"graphout",
NULL, &pszGraphOut,
"Output Graph file")
70 if (pszVertex ==
NULL) {
74 nVertex = atol(pszVertex);
76 printf(
"Graph read:\n");
77 if ((fd = open(pszGraph, O_RDONLY)) < 0) {
83 fprintf(stderr,
"dglRead error: %s\n",
dglStrerror(&graph));
89 printf(
"Graph depth spanning:\n");
92 fprintf(stderr,
"dglDepthSpanning error: %s\n",
dglStrerror(&graph));
98 printf(
"Graph flatten:\n");
106 printf(
"Graph write:\n");
108 open(pszGraphOut, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
114 fprintf(stderr,
"dglWrite error: %s\n",
123 printf(
"Empty span. No output produced.\n");