public static void main(String args[]){
        Graph<Integer> graph = new Graph<Integer>(false);
        graph.addEdge(1, 2);
        graph.addEdge(1, 3);
        graph.addEdge(2, 4);
        graph.addEdge(2, 5);
        graph.addEdge(3, 6);
        graph.addEdge(5, 6);
        graph.addEdge(5, 7);
        graph.addEdge(6, 7);
        graph.addEdge(4, 7);
        graph.addEdge(1, 8);
        graph.addEdge(8, 9);
        graph.addEdge(9, 1);
        Vertex<Integer> start = graph.getVertex(1);
        Vertex<Integer> dest = graph.getVertex(7);
        PrintAllPathFromSourceToDestination pap = new PrintAllPathFromSourceToDestination();
        pap.printPath(graph, start, dest);
    }
http://www.careercup.com/question?id=5922416572235776
Test case
Source or destination vertex does not exist in the graph
There is no path between src to dest vertex
src/com/interview/graph/PrintAllPathFromSourceToDestination.java