MGraph matrix representation correct + tests