Now I have more than 10,000 groups of information about different companies, corporate legal entities and corporate shareholders. They are all in their respective categories. What kind of machine learning method will I use to identify the mutual investment relationship between these companies? For example, investigating the shareholders of a company or the shareholders of another company? If the company is found to have an investment relationship with another company or has a common shareholder, the company's score is increased by one, otherwise it is zero. The goal is to return the scores of more than 10,000 companies.Thanks for your advice.