public Boolean isSubgraph(Graph g) {
        if(g.getNoVertices() < getNoVertices()) {
            return false;
        }
        for(int i = 0; i < getNoVertices(); i++) {
            List<Integer> vertices = adjacencyList.get(i);
            for (Integer vertice : vertices) {
                if (!g.getAdjacentsFor(i).contains(vertice)) {
                    return false;
                }
            }
        }
        return true;
    }