emat_operations function

Edge matrix operations