added MEMM graph, sorted