SMS: Graphs and algorithms