completed DrawTrangleGraph function