Java ArrayList Print printEdgeCycleMembership(final int[][] cyclesData, final ArrayList[] nodeCycleMembership)

Here you can find the source of printEdgeCycleMembership(final int[][] cyclesData, final ArrayList[] nodeCycleMembership)

Description

prints edge cycle membership to System.out

License

LGPL

Parameter

Parameter Description
cyclesData a parameter
nodeCycleMembership a parameter

Declaration

public static void printEdgeCycleMembership(final int[][] cyclesData,
        final ArrayList<Integer>[] nodeCycleMembership) 

Method Source Code

//package com.java2s;
/**//w ww. ja  va 2s .  c  o  m
 * Created on Jun 3, 2005
 *
 * @by Olga Urzova (siolurzo@stud.informatik.uni-erlangen.de)
 * <p>
 * Copyright 2005 Olga Urzova
 * <p>
 * This file is part of de.parsemis.
 * <p>
 * Licence:
 * LGPL: http://www.gnu.org/licenses/lgpl.html
 * EPL: http://www.eclipse.org/org/documents/epl-v10.php
 * See the LICENSE file in the project's top-level directory for details.
 */

import java.util.ArrayList;

public class Main {
    /**
     * prints edge cycle membership to System.out
     *
     * @param cyclesData
     * @param nodeCycleMembership
     */
    public static void printEdgeCycleMembership(final int[][] cyclesData,
            final ArrayList<Integer>[] nodeCycleMembership) {
        for (int i = 0; i < cyclesData[1].length; i++) {
            System.out.print("Kante " + i + ":");
            for (int j = 0; j < nodeCycleMembership[i].size(); j++) {
                System.out.print(nodeCycleMembership[i].get(j).intValue()
                        + " ");
            }
            System.out.println();
        }
        System.out.println();
    }
}

Related

  1. printArrayList(ArrayList set)
  2. printArrayList(ArrayList list)
  3. printArrayList(ArrayList _array)
  4. printArrayListInt(ArrayList list)
  5. printComboBoxView(ArrayList alOptionValue, String sDefaultValue)
  6. printListFlat(ArrayList list)
  7. printMatrix(ArrayList> grid)
  8. printReport(ArrayList words, ArrayList searched)
  9. printStringArrayList(ArrayList list)