23 int main(
int argc,
char *argv[])
32 printf(
"Usage: %s <GraphFile> <PermFile\n", argv[0]);
38 if (graph->
nvtxs <= 0) {
39 printf(
"Empty graph. Nothing to do.\n");
42 if (graph->
ncon != 1) {
43 printf(
"Ordering can only be applied to graphs with one constraint.\n");
53 for (i=0; i<graph->
nvtxs; i++)
56 printf(
"**********************************************************************\n");
58 printf(
"Graph Information ---------------------------------------------------\n");
59 printf(
" Name: %s, #Vertices: %"PRIDX", #Edges: %"PRIDX"\n\n", argv[1],
61 printf(
"Fillin... -----------------------------------------------------------\n");
65 printf(
" Nonzeros: %6.3le \tOperation Count: %6.3le\n", (
double)maxlnz, (
double)opc);
68 printf(
"**********************************************************************\n");
idx_t idx_t idx_t idx_t idx_t idx_t * iperm
NonlinearFactorGraph graph
static const SmartProjectionParams params
idx_t idx_t idx_t idx_t idx_t * perm
char * gk_strdup(char *orgstr)
Duplicates a string.
graph_t * ReadGraph(params_t *params)
void ReadPOVector(graph_t *graph, char *filename, idx_t *vector)
int main(int argc, char *argv[])
void ComputeFillIn(graph_t *graph, idx_t *perm, idx_t *iperm, size_t *r_maxlnz, size_t *r_opc)