I want to group items that are linked to each other. I tried to use some kind of connection matrix
nid =/ oid NB. an example 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 to group items linked to each other but I can't figure out how to proceed from there. I'm hoping someone has a trick in their toolbox to share with me. oid is the first number of all connections and nid is the second number. So in this example 6 is connected to 7, 7 is connected to 12 and 12 has no further connection. What should foo be? oid,.nid 1 2 9 10 6 7 2 3 10 11 7 12 3 4 11 8 4 5 oid foo nid ┌─────────┬─────────┬──────┐ │1 2 3 4 5│9 10 11 8│6 7 12│ └─────────┴─────────┴──────┘ Thank you, Pablo ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm