The invention provides an enterprise investment
relation graph construction method,
system and device and a medium, and belongs to the technical field of computers. The method comprises the following steps: firstly, inputting information of enterprises, shareholders and capital enterprises into a
database to form a main table and a sub-table which both contain unique IDs of the enterprises; then, according to the to-be-queried enterprise ID and the
timestamp, two query algorithms are used for respectively obtaining enterprise information, shareholder information and capital enterprise information; a
tree structure TreeNode is defined, wherein the
tree structure TreeNode comprises enterprise display, associated parameters and a child node
list. Through recursive query, an information tree of enterprise shareholders and capital enterprises is constructed. And then combining the two trees into an investment relation tree. And finally, constructing a
data model based on the tree, converting the
data model into graphic elements, and generating a visual enterprise investment
relation graph. In the process, enterprise investment information is efficiently integrated, and visual analysis is facilitated. According to the invention, automatic generation of the enterprise investment
relation graph is realized, and the
visualization effect and the analysis efficiency of the enterprise investment relation are effectively improved.