graph implementation

yanked from http://en.wikipedia.org/wiki/Ford%E2%80%93Fulkerson_algorithm
user method for num avail shifts
first draft of shift scheduler

seems to work