From: Nuralanur@... Date: 2005-05-09T03:48:38+09:00 Subject: Re: Representing Undirected Edges (advice, please) -------------------------------1115578093 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Dear Gavin, Why can't you use the concept of an incidence matrix ? That would be a matrix made up of all the nodes times all the nodes and entries '1' at position (i,j) if nodes i and j are connected and entry '0' otherwise. (Or you choose to assign a numeric value for the connection strength) Of course, that's a symmetric matrix, so one could leave the elements below the diagonal out, and maybe rename nodes to make use of sparseness... Best regards, Axel -------------------------------1115578093--