Minimizing edge crossings by adjacency matrix transformation operations