<｜begin▁of▁sentence｜>### Instruction:
Given a 3x3 identity matrix constructed using the igraph Matrix class, how would you iterate through the rows of the matrix and print them out?
### Response:
from igraph import Matrix

# Create a matrix
mat = Matrix(3, 3)
mat[0, 0] = 1
mat[1, 1] = 1
mat[2, 2] = 1

# Iterate over the rows of the matrix
for row in mat:
    print(row)
<|EOT|>
