Project

General

Profile

Revision 1989

changed map_gen.py to account for new spec

View differences:

trunk/code/projects/traffic_navigation/map_gen.py
58 58
	l=sys.stdin.readline()
59 59
	l_s = l.split()
60 60
	map(addNode, l_s)
61
	for y in l_s[1:]:
62
		gr.add_edge((l_s[0],y))
61
	if (l_s[0] == "80"):
62
		for y in l_s[2:]:
63
			gr.add_edge((l_s[1],y))
63 64
	drawGraph()
64 65

  

Also available in: Unified diff