The TrackList Data Type
n
nRepresents a graph through an array of linked list.
nTwo TrackLists, one for clockwise movement and one for counterclockwise movement provides a function to output the next photocell and turnout
nGives both the next turnout and the direction that turnout needs to be in to reach the next photocell given.
nCan be read from a file for different tracks.