Added another check to graph_tests_3 to make sure corrected edges are added
Added C wrapper to graph permutation
matrix_tests_5 now tests graph product with random connectivity structure and works