in reply to Matrix kind of graph

I guess you want to adopt your matrix data for GraphViz and use it to build your graph