public void setUp()
        {
            string stringWithEdges = "A B 5\r\n" +
                                     "A C 6\r\n" +
                                     "B C 7\r\n" +
                                     "B D 8\r\n" +
                                     "C D 9";
            //	    <graphDefinition>
            //	    A B 5
            //	    A C 6
            //	    B C 7
            //	    B D 8
            //	    C D 9
            //	    </graphDefinition>
            var edgeParser = EdgeParser <Edge, Vertex, Weight> .CreateEdgeParserDefault();

            IList <Edge> edges = edgeParser.FromMultiLinedStringToListOfEdges(stringWithEdges);

            pathParser = PathParser <Path, Edge, Vertex, Weight> .CreatePathParserDefault(edges);
        }
Example #2
0
 public void setUp()
 {
     edgeParser = EdgeParser <Edge, Vertex, Weight> .CreateEdgeParserDefault();
 }