public static Graph quick(int size) {
        Graph g = new Graph();
        for (int i = 0; i < size; i++) {
            g.addVertex(new Vertex(0));
            if (i > 1) {
                g.addEdge(g.getVertices().get(i), g.getVertices().get(i - 1), r.nextInt((10) + 1));
                g.addEdge(g.getVertices().get(i), g.getVertices().get(i - 2), r.nextInt((10) + 1));
            }
        }
        return g;
    }