title: adjacency matrix in Java - edge overlapping
body: <p>I have a very simple question to ask.</p>
  
  <p>I am using an adjacency matrix (2D array) in java to create a small graph with nodes and edges.</p>
  
  <p>My problem is that when I instruct the program to iterate through the adjacency matrix,
  using a simple nested loop, I experience the problem of edge overlapping. 
  To be more specific, when matrix[i][j] is true and matrix[j][i] is true as well the app will try to draw 2 edges between nodes i and j which would be a waste and ugly-looking.</p>
  
  <p>How can I overcome that problem?</p>