graphs and algorithms homework