A teacher wants to find students that would take part in a school play. However, they are willing to perform only if they are acquaintances with the other participants. You have an image below: it has the names of the students and the lines, which connect the ones, who know each other. Students consider themselves familiar with the other performer if there is a chain of acquaintances connecting them. A teacher wants to maximize the number of students taking part in a play. How many students may participate?
Connectivity in graphs
A school play
Report a typo
Enter a number
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.