Re: aggregation of related elements in a list
- To: mathgroup at smc.vnet.net
- Subject: [mg61610] Re: aggregation of related elements in a list
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Sun, 23 Oct 2005 05:46:33 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 10/22/05 at 12:35 AM, leigh at cephb.fr (leigh pascoe) wrote:
>related to x5 but not x7 and x5 is related to x7 etc. would produce
>the list of lists
>{{x1},{x2,x5,x7),.......}
>To take a specific example, assume we have the list
>list={1,2,6,7,8,9,11,16}
>and that application of the relatedQ, test to all possible pairs
>yields the list of related pairs
>prlist={{1,2},{1,6},{2,6},{2,7},{6,7},{6,11},{7,8},{7,11},{11,16}}
>Using the list and the list of related pairs we can deduce the
>desired list of lists as
>{{1,2,6,7,8,11,16},{9}}
Have you looked at the package Statistics`ClusterAnalysis`? It looks to me like this package has the functions you are asking for.
--
To reply via email subtract one hundred and four