Graphs, networks and algorithms