graphs and algorithms 6808889