public void print() {

        String format = "";
        for (Vertex<T> vertex : vertexes.keySet()) {

            format = format + "\n" + String.format("%10s", vertex.getValue());
            for (Edge<T> edge : vertex.getEdges()) {
                if (edge.getVertex1().equals(vertex)) {
                    format = format + String.format("%10s", edge.getVertex2().getValue());
                }
            }
        }
        System.out.println(format);

    }