Graph conversion method has been changed. Sorting problem has been fixed.