Graphs and graph algorithms