convert tcmls to graph