# Path: route_model/misc.py
# def get_orig_path(dual_path):
# 	
# 	orig_path=[dual_path[1][0]]
# 	for i in range(1,len(dual_path)-1):
# 		orig_path.append(dual_path[i][1])
# 		
# 	return orig_path


from route_model.misc import get_orig_path

def path_size(G,choice_sets,choice_set_config):
	
	result=[]
	config=choice_set_config
	
	the_network=G
	if G.orig_network is not None:
		the_network=G.orig_network
	
	for path_list in choice_sets:
		
		temp=[]
		
		hashes=[]; lengths=[]
		for cur_path in path_list:
			use_path=cur_path
			if G.orig_network is not None:

# Path: route_model/misc.py
# def get_orig_path(dual_path):
# 	
# 	orig_path=[dual_path[1][0]]
# 	for i in range(1,len(dual_path)-1):
# 		orig_path.append(dual_path[i][1])
# 		
# 	return orig_path


# Path: route_model/choice_set/path_size.py
from route_model.misc import get_orig_path


def path_size(G,choice_sets,choice_set_config):
	
	result=[]
	config=choice_set_config
	
	the_network=G
	if G.orig_network is not None:
		the_network=G.orig_network
	
	for path_list in choice_sets:
		
		temp=[]
		
		hashes=[]; lengths=[]
		for cur_path in path_list:
			use_path=cur_path
			if G.orig_network is not None:

				use_path=get_orig_path(cur_path)