Simple C# program that determines if a given matrix is transitive.