added transitions to graph