Design a data structure solved

Design a data structure solved

Design a data structure
Consider a set of Web pages with hyperlinks pointing to each other. Design a data structure to represent the link structure between the pages. A group of pages is called a self-linking group if they contain hyperlinks only to each other without any link in or out of the group. Give an algorithm to find all the self-linking groups in the set of Web pages.
Powered by