private object LoadSingleGraph(string path) { switch (this.Type) { case GraphType.AdjacencyGraph: return(TestGraphFactory.LoadGraph(path)); case GraphType.BidirectionalGraph: return(TestGraphFactory.LoadBidirectionalGraph(path)); case GraphType.UndirectedGraph: return(TestGraphFactory.LoadUndirectedGraph(path)); default: throw new NotSupportedException(); } }
public void UndirectedTopologicalSort_DCT8() { UndirectedGraph <string, Edge <string> > graph = TestGraphFactory.LoadUndirectedGraph(GetGraphFilePath("DCT8.graphml")); RunUndirectedTopologicalSortAndCheck(graph, true); }