Sanjay has asked for the wisdom of the Perl Monks concerning the following question:
Have a set where all members are connected directly or indirectly. A-B means A and B are connected directly. Order of A-B or B-A immaterial. A-B and B-C means A and C are indirectly connected. A, B, C, ... are ID nos.
Now want to find the largest collection (sub set) where each is directly connected with each other - if X-Y, X-Z, Y-Z then X, Y and Z are directly connected. If more than one such sub set, then would like to have all such sub sets, if possible.
This seems more a Graph problem than a Set problem. Looked at all the Graph and Set modules but could not find anything. Googled too.
Surprised that this problem is not common. Help appreciated
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Sub set where all are connected
by bliako (Abbot) on Nov 22, 2019 at 17:33 UTC | |
by ikegami (Patriarch) on Nov 23, 2019 at 01:03 UTC | |
Re: Sub set where all are connected
by LanX (Saint) on Nov 22, 2019 at 22:00 UTC | |
by Sanjay (Sexton) on Nov 23, 2019 at 15:25 UTC | |
by tybalt89 (Monsignor) on Nov 23, 2019 at 17:27 UTC | |
by LanX (Saint) on Nov 23, 2019 at 17:38 UTC | |
by LanX (Saint) on Nov 23, 2019 at 18:09 UTC | |
by tybalt89 (Monsignor) on Nov 23, 2019 at 20:53 UTC | |
| |
by bliako (Abbot) on Nov 23, 2019 at 20:43 UTC | |
| |
by LanX (Saint) on Nov 23, 2019 at 16:00 UTC | |
by Sanjay (Sexton) on Nov 29, 2019 at 15:11 UTC | |
by LanX (Saint) on Nov 29, 2019 at 15:23 UTC | |
by LanX (Saint) on Nov 25, 2019 at 17:47 UTC | |
Re: Sub set where all are connected
by marto (Cardinal) on Nov 22, 2019 at 16:33 UTC | |
by Sanjay (Sexton) on Nov 23, 2019 at 14:55 UTC | |
Re: Sub set where all are connected
by LanX (Saint) on Nov 23, 2019 at 03:27 UTC | |
by Sanjay (Sexton) on Nov 23, 2019 at 15:58 UTC | |
by LanX (Saint) on Nov 23, 2019 at 16:02 UTC | |
by Sanjay (Sexton) on Nov 23, 2019 at 16:08 UTC | |
by LanX (Saint) on Nov 23, 2019 at 16:15 UTC | |
by Sanjay (Sexton) on Nov 23, 2019 at 16:05 UTC | |
Re: Sub set where all are connected
by tybalt89 (Monsignor) on Nov 22, 2019 at 19:04 UTC | |
by AnomalousMonk (Archbishop) on Nov 22, 2019 at 21:10 UTC | |
Re: Sub set where all are connected
by bliako (Abbot) on Nov 23, 2019 at 17:13 UTC | |
Re: Sub set where all are connected
by tybalt89 (Monsignor) on Nov 29, 2019 at 17:04 UTC | |
by Sanjay (Sexton) on Jan 09, 2020 at 13:41 UTC |