/* * Copyright 1997, Regents of the University of Minnesota * * fortran.c * * This file contains code for the fortran to C interface * * Started 8/19/97 * George * * $Id: fortran.c,v 1.1 1998/11/27 17:59:14 karypis Exp $ * */ #include /************************************************************************* * This function changes the numbering to start from 0 instead of 1 **************************************************************************/ void Change2CNumbering(int nvtxs, idxtype *xadj, idxtype *adjncy) { int i, nedges; for (i=0; i<=nvtxs; i++) xadj[i]--; nedges = xadj[nvtxs]; for (i=0; i