private void createClique(int n, boolean edges) {
        double d = canvas.getHeight() / 3.0 * Math.sqrt(n) / 5;

        for (int i = 0; i < n; ++i) {
            createVertex(d * Math.sin(i * 2 * Math.PI / n), -d * Math.cos(i * 2 * Math.PI / n),
                    getNewVertexID());
        }
        if (edges) {
            for (int i = 0; i < n; ++i) {
                for (int j = i + 1; j < n; ++j) {
                    createEdge(vertices.get(i), vertices.get(j));
                }
            }
        }
        type = GraphType.clique;
    }