def setUp(self): graph_1_path = './test/fixtures/graph-1.txt' graph_2_path = './test/fixtures/graph-2.txt' self.graph_1 = graph.construct_graph_from_file(graph.AdjacencyList(), graph_1_path) self.graph_2 = graph.construct_graph_from_file(graph.AdjacencyList(), graph_2_path)
def setUp(self): graph_1_path = './test/fixtures/graph-1.txt' graph_2_path = './test/fixtures/graph-2.txt' self.graph_1 = graph.construct_graph_from_file(graph.ObjectOriented(), graph_1_path) self.graph_2 = graph.construct_graph_from_file(graph.ObjectOriented(), graph_2_path)
def setUp(self): graph_1_path = './test/fixtures/graph-1.txt' graph_2_path = './test/fixtures/graph-2.txt' #graph_1_path = "C:\\Users\\Kumar\\Downloads\\CS4660\\cs4660-fall-2017-amanish05\\cs4660\\test\\fixtures\\graph-1.txt" #graph_2_path = 'C:\\Users\\Kumar\\Downloads\\CS4660\\cs4660-fall-2017-amanish05\\cs4660\\test\\fixtures\\graph-2.txt' self.graph_1 = graph.construct_graph_from_file(graph.AdjacencyList(), graph_1_path) self.graph_2 = graph.construct_graph_from_file(graph.AdjacencyList(), graph_2_path)
def construct_graph(graph_path): """Helper function to construct graph given graph_path""" return lambda g: graph.construct_graph_from_file(g, graph_path)