Hi, I have a small issue trying to connect all points of a mesh with lines.

i have a code like:
Code:
for (i=0;i<pointnumber;i++)
{
 for (j=0;j<pointnumber;j++)
 {
  if (i!=j) line(point[i],point[j]);
 }
}



mainly my question is how can i prevent that when there already was for example a line from point[2] to point[5] another line points from point[5] to point[2]

thanks and cheers,
ello