22 int main(
int argc,
char *argv[])
29 if (argc != 2 && argc != 3) {
30 printf(
"Usage: %s <GraphFile> [FixedGraphFile (for storing the fixed graph)]\n", argv[0]);
34 memset((
void *)¶ms, 0,
sizeof(
params_t));
38 if (graph->
nvtxs == 0) {
39 printf(
"Empty graph!\n");
43 printf(
"**********************************************************************\n");
45 printf(
" (HEAD: %s, Built on: %s, %s)\n", SVNINFO, __DATE__, __TIME__);
46 printf(
" size of idx_t: %zubits, real_t: %zubits, idx_t *: %zubits\n",
49 printf(
"Graph Information ---------------------------------------------------\n");
50 printf(
" Name: %s, #Vertices: %"PRIDX", #Edges: %"PRIDX"\n\n",
52 printf(
"Checking Graph... ---------------------------------------------------\n");
55 printf(
" The format of the graph is correct!\n");
58 printf(
" The format of the graph is incorrect!\n");
63 printf(
" A corrected version was stored at %s\n", argv[2]);
67 printf(
"\n**********************************************************************\n");
NonlinearFactorGraph graph
static SmartStereoProjectionParams params
char * gk_strdup(char *orgstr)
Duplicates a string.
graph_t * ReadGraph(params_t *params)
void gk_free(void **ptr1,...)
void WriteGraph(graph_t *graph, char *filename)
int main(int argc, char *argv[])