public static void paintVertexDebug(Graphics2D g, Color color, Point center, int d, int name, ArrayList<Integer> list, boolean isImportant) {
        Ellipse2D.Double circle = new Ellipse2D.Double(center.x - d / 2, center.y - d / 2, d, d);
        if (isImportant)
            g.setColor(Color.GREEN);
        else
            g.setColor(color);
        g.fill(circle);
        g.setColor(Color.black);
        g.drawString(String.valueOf(name), center.x, center.y);
        StringBuilder str = new StringBuilder("");
        for (int i : list) {
            str.append(",");
            str.append(i);
        }
        if (str.length() > 0)
            g.drawString(str.toString(), center.x + String.valueOf(name).length() * 5, center.y + 30);
    }