Output MAT file for Graph