parmetis: data for each processor

Hello,
I have been able to use the routine ParMETIS_V3_PartKway in parmetis's library, however I only managed to do so with one processor. In this case there is only one set of arrays (vtxdist, xadj, adjncy, ...) which is identical to the CSR format.
I just call the routine with the pointers to the single set of arrays that I have:

int j = ParMETIS_V3_PartKway(vtxdist, xadj, adjncy, vwgt, adjwgt, wgtflag, numflag, ncon, nparts, tpwgts, ubvec, options, edgecut, part, &comm);

I'm not clear about how to handle the different sets of arrays for more than one processor. Do I need to call the routine multiple times, each time with the data for that particular processor? Or do I need to call the routine once, using arrays of arrays with the data for each processor? Or is there a different procedure?
I haven't been able to find instructions on how to implement this. Do you have any sample code?
Thank you in advance for any help you can provide