ในโปรแกรมนี้ เราสร้างกราฟ acyclic กำกับแบบสุ่มสำหรับขอบ e ที่กำหนด ความซับซ้อนของเวลาของโปรแกรมนี้คือ O(e*v*e) อัลกอริทึม Begin function GenerateRandomGraphs(), has ‘e’ as the number edges in the argument list. generate a connection between two random numbers, f