/* * Copyright 1997, Regents of the University of Minnesota * * mgrsetup.c * * This file contain various graph setting up routines * * Started 10/19/96 * George * * $Id: renumber.c 10531 2011-07-09 21:58:13Z karypis $ * */ #include /************************************************************************* * This function changes the numbering from 1 to 0 or 0 to 1 **************************************************************************/ void ChangeNumbering(idx_t *vtxdist, idx_t *xadj, idx_t *adjncy, idx_t *part, idx_t npes, idx_t mype, idx_t from) { idx_t i, nvtxs; nvtxs = vtxdist[mype+1]-vtxdist[mype]; if (from == 1) { /* Change it from 1 to 0 */ for (i=0; i