public Edg randomEdge() {
        Set<Integer> nodes = adjList.keySet();

        int item = new Random().nextInt(nodes.size() - 1);
        int i = 0;
        for (int obj : nodes) {
            if (i == item)
                break;
            i = i + 1;
        }
        List<Edg> edges = adjList.get(i);
        item = new Random().nextInt(edges.size() - 1);
        i = 0;
        for (Edg obj : edges) {
            if (i == item)
                return obj;
            i = i + 1;
        }
        return null;
    }