Here is the problem I am problem I am trying to solve. I have a set of "Like" elements that define a person liking another person. For example, one element would have the information "John likes Jane". Another might have "Jane likes Joseph" and so on. I would like to know what would be the best algorithm to determine
- Least number of elements that together would forma closed loop. In the above example, if we have another element "Joseph likes John" then the 3 elements together would form a closed loop
- The list of elements could be huge
I was looking at the Travelling Salesman algorithm. But it doesnt provide me the Least number of nodes to form a closed loop
Appreciate your help