add function to generate latex dot2texi code from adjacency matrices