/******************************************************************** _LogEdgeList() Used to show the progressive calculation of the edge position list. ********************************************************************/ void _LogEdgeList(graphP theEmbedding, listCollectionP edgeList, int edgeListHead) { int e = edgeListHead, J, JTwin; gp_Log("EdgeList: [ "); while (e != NIL) { J = theEmbedding->edgeOffset + 2*e; JTwin = gp_GetTwinArc(theEmbedding, J); gp_Log(gp_MakeLogStr2("(%d, %d) ", theEmbedding->G[theEmbedding->G[J].v].v, theEmbedding->G[theEmbedding->G[JTwin].v].v)); e = LCGetNext(edgeList, edgeListHead, e); } gp_LogLine("]"); }
int main(int argc, char *argv[]) { int retVal=0; if (argc <= 1) retVal = menu(); else if (argv[1][0] == '-') retVal = commandLine(argc, argv); else retVal = legacyCommandLine(argc, argv); // Close the log file if logging gp_Log(NULL); return retVal; }