public int[] getCityNeighbours(int city) {
        int cntr = 0;
        for (int i = 0; i < roads.size(); i++) {
            String[] s = (String[]) roads.get(i);
            int c1 = Integer.valueOf(s[0]);
            int c2 = Integer.valueOf(s[1]);
            if ((c1 == city) || (c2 == city)) {
                cntr++;
            }
        }
        int[] ns = new int[cntr];
        cntr = 0;
        for (int i = 0; i < roads.size(); i++) {
            String[] s = (String[]) roads.get(i);
            int c1 = Integer.valueOf(s[0]);
            int c2 = Integer.valueOf(s[1]);

            if (c1 == city) {
                ns[cntr] = c2;
                cntr++;
            }
            if (c2 == city) {
                ns[cntr] = c1;
                cntr++;
            }
        }
        return ns;
    }