CN112506976A - Data flow direction display method and device, electronic equipment and storage medium - Google Patents

Data flow direction display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112506976A
CN112506976A CN202011465839.4A CN202011465839A CN112506976A CN 112506976 A CN112506976 A CN 112506976A CN 202011465839 A CN202011465839 A CN 202011465839A CN 112506976 A CN112506976 A CN 112506976A
Authority
CN
China
Prior art keywords
data flow
flow direction
nodes
coordinates
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011465839.4A
Other languages
Chinese (zh)
Other versions
CN112506976B (en
Inventor
李伟
蔡亮
匡立中
曾磊
王禹凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN202011465839.4A priority Critical patent/CN112506976B/en
Publication of CN112506976A publication Critical patent/CN112506976A/en
Application granted granted Critical
Publication of CN112506976B publication Critical patent/CN112506976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • G06F16/287Visualization; Browsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application is applicable to the technical field of computers, and provides a method and a device for displaying data flow direction, electronic equipment and a storage medium. The display method of the data flow direction comprises the following steps: when a data flow direction display request sent by a user is acquired, acquiring at least one piece of data flow direction information from a block chain, wherein each piece of data flow direction information comprises two participating objects and a data flow direction between the two participating objects; generating a tree structure according to at least one piece of data flow direction information, wherein the tree structure comprises at least two nodes and data flow directions between the at least two nodes, and each node corresponds to one participating object; determining coordinates of each node and a connection mode between each node according to the tree structure; generating a data flow direction link diagram according to the coordinates of each node and the connection mode among the nodes; a data flow link diagram is shown. Therefore, the data flow direction among all the participating objects can be visually displayed, and the user can conveniently check the data flow direction.

Description

Data flow direction display method and device, electronic equipment and storage medium
Technical Field
The present application belongs to the field of computer technologies, and in particular, to a method and an apparatus for displaying a data flow direction, an electronic device, and a storage medium.
Background
In the process of supervising the project, the supervising department needs to check the data flow direction such as the fund flow direction or the work progress corresponding to the project. For example, the fund payment path of an engineering project is generally bank > general packet company > subcontractor > labor worker, and a fund supervision department needs to know the fund flow direction to supervise the fund. The existing method for acquiring the data flow direction generally leads out data flow direction information to form a form, and displays the data flow direction in the form of the form, so that the data flow direction information between every two participating objects can only be displayed sporadically, and when a huge engineering project is involved, the data flow direction information is more, the form needs to be displayed in a paging mode, so that the data flow direction cannot be displayed visually, and the data flow direction is not favorable for viewing.
Disclosure of Invention
In view of this, embodiments of the present application provide a method and an apparatus for displaying a data flow direction, an electronic device, and a storage medium, which can visually display the data flow direction and facilitate a user to check the data flow direction.
A first aspect of an embodiment of the present application provides a method for displaying a data flow direction, including:
responding to a received data flow display request, and acquiring at least one piece of data flow information from a block chain, wherein each piece of data flow information comprises two participating objects and a data flow between the two participating objects;
generating a tree structure according to the at least one piece of data flow direction information, wherein the tree structure comprises at least two nodes and data flow directions between the at least two nodes, and each node corresponds to one participating object;
determining coordinates of all nodes and a connection mode among all nodes according to the tree structure;
generating a data flow direction link diagram according to the coordinates of the nodes and the connection mode among the nodes;
and displaying the data flow direction link diagram.
In a possible implementation manner, the determining coordinates of each node and a connection manner between the nodes according to the tree structure includes:
acquiring a preset link diagram display mode;
determining the coordinates of each node according to the link diagram display mode and the tree structure;
and determining a connection mode between the nodes according to the coordinates of the nodes.
In a possible implementation manner, the link diagram display manner includes a horizontal display manner or a vertical display manner.
In a possible implementation manner, the determining coordinates of each node according to the link diagram display manner and the tree structure includes:
determining the coordinates of the designated nodes in the nodes according to the display mode of the link diagram;
determining the coordinate relation among the nodes according to the tree structure;
and determining the coordinates of each node according to the coordinates of the designated nodes and the coordinate relation.
In one possible implementation, after the presenting the data flow direction link map, the method further includes:
and displaying a link where a target node is located according to a preset display format, wherein the target node is a selected node in the at least two nodes.
In one possible implementation, after the presenting the data flow direction link map, the method further includes:
receiving a scaling;
scaling the data flow to a link map according to the scaling.
In a possible implementation manner, the method for displaying the data flow further includes:
acquiring transaction information;
generating the data flow direction information according to the transaction information;
and recording the data stream information in the block chain.
In a possible implementation manner, the data flow direction information further includes time and state information corresponding to the data flow direction; correspondingly, the generating a data flow direction link diagram according to the coordinates of the nodes and the connection mode among the nodes includes:
and generating a data flow direction link diagram according to the coordinates of the nodes, the connection mode among the nodes and the time and state information.
A second aspect of the embodiments of the present application provides a display apparatus for displaying data flow direction, including:
the data flow direction display module is used for responding to a received data flow direction display request and obtaining at least one piece of data flow direction information from a block chain, wherein each piece of data flow direction information comprises two participating objects and a data flow direction between the two participating objects;
a first computing module, configured to generate a tree structure according to the at least one piece of data flow direction information, where the tree structure includes at least two nodes and a data flow direction between the at least two nodes, and each node corresponds to one participating object;
the determining module is used for determining the coordinates of all the nodes and the connection mode among all the nodes according to the tree structure;
the second calculation module is used for generating a data flow direction link diagram according to the coordinates of the nodes and the connection mode among the nodes;
and the display module is used for displaying the data flow direction link diagram.
In a possible implementation manner, the determining module is specifically configured to:
acquiring a preset link diagram display mode;
determining the coordinates of each node according to the link diagram display mode and the tree structure;
and determining a connection mode between the nodes according to the coordinates of the nodes.
In a possible implementation manner, the link diagram display manner includes a horizontal display manner or a vertical display manner.
In a possible implementation manner, the determining module is specifically configured to:
determining the coordinates of the designated nodes in the nodes according to the display mode of the link diagram;
determining the coordinate relation among the nodes according to the tree structure;
and determining the coordinates of each node according to the coordinates of the designated nodes and the coordinate relation.
In a possible implementation manner, the display apparatus for displaying the data flow direction further includes a display module, where the display module is configured to:
and displaying a link where a target node is located according to a preset display format, wherein the target node is a selected node in the at least two nodes.
In one possible implementation, the display module is further configured to:
receiving a scaling;
scaling the data flow to a link map according to the scaling.
In a possible implementation manner, the display apparatus for the data flow direction further includes a recording module, where the recording module is configured to:
acquiring transaction information;
generating the data flow direction information according to the transaction information;
and recording the data stream information in the block chain.
In a possible implementation manner, the data flow direction information further includes time and state information corresponding to the data flow direction; correspondingly, the second calculation module is specifically configured to:
and generating a data flow direction link diagram according to the coordinates of the nodes, the connection mode among the nodes and the time and state information.
A third aspect of embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for presenting data flow as described in the first aspect.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the method for presenting a data flow direction according to the first aspect.
A fifth aspect of embodiments of the present application provides a computer program product, which, when running on an electronic device, causes the electronic device to execute the method for presenting a data flow according to the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: when a data flow direction display request sent by a user is obtained, at least one piece of data flow direction information is obtained from a block chain, each piece of data flow direction information comprises two participating objects and a data flow direction between the two participating objects, a tree structure is generated according to the at least one piece of data flow direction information, the tree structure comprises at least two nodes and data flow direction information between the at least two nodes, each node corresponds to one participating object, coordinates of each node and a connection mode between the nodes are determined according to the tree structure, a data flow direction link diagram is generated according to the coordinates of each node and the connection mode between the nodes, and the data flow direction link diagram is displayed. Therefore, each node and the connection mode between the nodes can be checked on the data flow direction link diagram, the nodes correspond to the participating objects, the connection mode between the nodes is determined according to the tree structure, and the tree structure is generated according to the participating objects and the data flow direction between the two participating objects, so that the data flow direction link diagram can visually display the data flow direction between the participating objects, and a user can conveniently check the data flow direction.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below.
Fig. 1 is a schematic implementation flow diagram of a data flow direction display method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a data flow to link diagram provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a data flow to link diagram provided by another embodiment of the present application;
FIG. 4 is a schematic diagram of a display device for data flow provided by an embodiment of the present application;
fig. 5 is a schematic diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In addition, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
The existing method for acquiring the data flow direction generally leads out data flow direction information to form a form, and displays the data flow direction in the form of the form, so that the data flow direction information between every two participating objects can only be displayed sporadically, and when a huge engineering project is involved, the data flow direction information is more, the form needs to be displayed in a paging mode, so that the data flow direction cannot be displayed visually, and the data flow direction is not favorable for viewing.
Therefore, the data flow direction display method provided by the embodiment of the application can visually display the data flow direction and is convenient for a user to check.
The following describes an exemplary method for displaying data flow provided by the present application.
Referring to fig. 1, a method for displaying a data flow according to an embodiment of the present application includes:
s101: and responding to the received data flow showing request, and acquiring at least one piece of data flow information from the block chain, wherein each piece of data flow information comprises two participating objects and a data flow between the two participating objects.
The data flow information is recorded in the blockchain, and the data flow information may be fund flow information, transaction progress information, and the like. The participating objects are users or departments corresponding to data flow information, and the data flow is used for representing the relationship between the two participating objects, for example, if funds are paid from the A department to the B department, the data flow is from the A department to the B department. If the fund is transferred from the A department to the B department and the C department, the corresponding data flow direction is two, wherein one data flow direction is from the A department to the B department, and the other data flow direction is from the A department to the C department.
In a possible implementation manner, before receiving the data flow direction display request, if the transaction information is detected, the electronic device generates data flow direction information according to the transaction information, and records the data flow direction information in the block chain, so that the data flow direction information stored in the block chain can be updated in real time, and data loss is prevented. The transaction information may be fund transfer information or transaction information. For example, if department a pays 100 yuan to department B, the generated data flow information is from a, to B, 100 yuan.
S102: and generating a tree structure according to the at least one piece of data flow information, wherein the tree structure comprises at least two nodes and data flow directions between the at least two nodes, and each node corresponds to one participating object.
Specifically, in the block chain, each participating object corresponds to one node, and two nodes corresponding to one data flow direction information form a group of nodes. The tree-shaped relationship of each group of nodes can be determined according to the data flow direction of each group of nodes, namely, a father node and a child node in each group of nodes are determined, then, a tree-shaped structure can be determined according to all the tree-shaped relationships, and the tree-shaped structure can reflect the data flow direction among the nodes, namely, the hierarchical relationship among the nodes.
For example, the data flow information recorded in the block chain is:
(1){fromCode:1,toCode:2,money:100},
(2){fromCode:1,toCode:3,money:100},
(3){fromCode:2,toCode:4,money:100},
the corresponding tree relationship includes three groups: (1) the father node is Code 1, and the son node is Code 2; (2) the father node is Code 1 and the son node is Code 3; (3) parent node Code:2 and child node Code: 4.
Taking Code 1 as a root node, the obtained tree structure is as follows:
Figure BDA0002834160500000081
the tree structure represents that Code 1 is a root node, Code 2 is a child node of the root node, Code 4 is a child node of the Code 2, and Code 3 is a child node of the root node.
S103: and determining the coordinates of each node and the connection mode among the nodes according to the tree structure.
Specifically, the position relationship among the nodes is determined according to the tree structure, the coordinates of the nodes on the display interface are determined according to the position relationship among the nodes and the size of the display interface, and the connection mode among each group of nodes is determined according to the data flow direction corresponding to the tree structure, wherein the connection mode comprises the direction of a connection line, and the connection line points to a child node from a parent node.
In a possible implementation manner, before determining coordinates of each node and a connection manner between the nodes, the electronic device further obtains a preset link diagram display manner, where the link diagram display manner may be preset by a user according to a requirement, and the link diagram display manner may be a horizontal display manner or a vertical display manner, or may be a mesh display manner with a root node as a center.
After the electronic equipment acquires the display mode of the link diagram set by the user, the coordinates of each node are determined according to the display mode of the link diagram and the tree structure, and then the connection mode between the nodes is determined according to the coordinates of each node, wherein the connection mode comprises the direction of the connection line and the type of the connection line, and the type of the connection line comprises a straight line and a broken line.
In a possible implementation manner, the electronic device first determines coordinates of designated nodes in each node according to a display manner of the link diagram, then determines coordinate relationships among the nodes according to the tree structure, and finally determines coordinates among the nodes according to the coordinates of the designated nodes and the coordinate relationships among the nodes. The designated node may be any node among the nodes. For example, the designated node is a root node, if the display mode of the link diagram is horizontal display, the root node is located in the middle of the left side of the display interface, and if the display mode of the link diagram is vertical display, the root node is located in the middle of the upper side of the display interface. After the coordinates of the root node are determined, the coordinates of the child nodes of the root node are determined according to the hierarchical relation between the nodes in the tree structure, then the coordinates of the child nodes at the next level are determined, and the like are repeated until the coordinates of all the nodes are determined, so that the generated data flow direction link diagram can accurately reflect the data flow direction between the nodes.
In another possible implementation manner, the electronic device may also determine coordinates of the designated node in the tree structure according to the size of the display interface, determine coordinates of the other nodes according to the tree structure and the coordinates of the designated node, and finally adjust the coordinates of each node according to the display manner of the link diagram to obtain the adjusted coordinates of each node, so that the finally displayed data flow is matched with the link diagram and the display interface.
After the coordinates of each node are determined, the electronic equipment determines the type of the connecting line according to the coordinates of each group of nodes, and finally determines the direction of the connecting line according to the data flow direction of each group of nodes.
For example, if the link diagram is displayed in a horizontal direction, the coordinates of Code:1 are (x1, y1), the coordinates of Code:2 are (x2, y2), the coordinates of Code:3 are (x3, y3), and the coordinates of Code:4 are (x4, y 4). The Code 1 and the Code 2 are a group of nodes, and the abscissa and the ordinate are different; the Code 1 and the Code 3 are a group of nodes, and the abscissa and the ordinate are different; the Code:2 and the Code:4 are a group of nodes and have the same ordinate. The Code 2 and the Code 3 are located on two sides of the Code 1, and the positions of the Code 2 and the Code 3 may be set according to the order of the nodes or according to user input, and the Code 2 may be located above the Code 3 or the Code 2 may be located below the Code 3.
Correspondingly, the Code:1 and the Code:2 are connected by a broken line, the starting point coordinate of the broken line is (x1, y1+ (h/2)), the inflection point coordinate is (x1, y2), and the end point coordinate is (x2- (w/2), y 2). The Code:1 and the Code:3 are connected by a broken line, the starting point coordinates (x1, y1- (h/2)) of the broken line are (x1, y3) and the ending point coordinates are (x2- (w/2) and y 3). The Code:2 and the Code:4 are connected by a straight line, the coordinates of the starting point of the straight line are (x2+ (w/2), y2), and the coordinates of the ending point are (x4- (w/2), y 4).
S104: and generating a data flow direction link diagram according to the coordinates of the nodes and the connection mode among the nodes.
Specifically, the electronic device displays nodes at corresponding positions of the display interface according to coordinates of the nodes, and connects the nodes according to a connection mode among the nodes to obtain a data flow direction link diagram. For example, if the link diagram is displayed in a horizontal manner, the obtained data flow is shown in fig. 2, and if the link diagram is displayed in a vertical manner, the obtained data flow is shown in fig. 3.
In one possible implementation, the data flow information further includes time and status information corresponding to the data flow, for example, the fund flow information includes time of fund payment, the transaction progress information includes transaction status and transaction time, and the like. Correspondingly, the tree structure includes time and state information corresponding to the data flow, and the data flow link diagram also includes time and state information corresponding to the data flow. For example, as shown in fig. 3, the time and status information corresponding to the data flow may be displayed on one side of each connection line in the data flow link diagram, or the time and status information corresponding to the data flow may be displayed on the connection line.
S105: and displaying the data flow direction link diagram.
In the above embodiment, when a data flow direction display request sent by a user is obtained, at least one piece of data flow direction information is obtained from a block chain, each piece of data flow direction information includes two participating objects and a data flow direction between the two participating objects, a tree structure is generated according to the at least one piece of data flow direction information, the tree structure includes at least two nodes and data flow direction information between the at least two nodes, each node corresponds to one participating object, coordinates of each node and a connection mode between each node are determined according to the tree structure, a data flow direction link diagram is generated according to the coordinates of each node and the connection mode between each node, and the data flow direction link diagram is displayed. Therefore, each node and the connection mode between the nodes can be checked on the data flow direction link diagram, the nodes correspond to the participating objects, the connection mode between the nodes is determined according to the tree structure, and the tree structure is generated according to the participating objects and the data flow direction between the two participating objects, so that the data flow direction link diagram can visually display the data flow direction between the participating objects, and a user can conveniently check the data flow direction.
In a possible implementation manner, after the data flow direction link diagram is displayed on the display interface, if it is detected that a user selects one node in the data flow direction link diagram, the selected node is used as a target node, a link where the target node is located is determined, and the link where the target node is located is displayed according to a preset display format, for example, the link where the target node is located is highlighted, or a font of the link where the target node is located is displayed in a bold manner, or a font color of the link where the target node is located is changed, so that the user can conveniently view the selected link. For example, as shown in the data flow direction link diagrams of fig. 2 and 3, Code:1 is a root node, Code:2 and Code:3 are child nodes of the root node, and Code:4 is a next-level child node. When a user selects each level of child nodes, the nodes selected by the user are used as target nodes, links where the target nodes are located are determined, the links where the target nodes are located are displayed according to a preset display format, and when the user selects a root node, the whole data flow direction link graph is displayed according to the preset display format.
In a possible implementation manner, when the display interface displays the link where the target node is located according to the preset display format, if it is detected that the user clicks a blank area of the display interface, that is, it is detected that the user clicks an area outside the data flow direction link diagram, the data flow direction link diagram restores the original display state.
In a possible implementation manner, after the data flow direction link diagram is displayed on the display interface, if an instruction of a user for scaling the data flow direction link diagram is detected, the scaling is received, and the data flow direction link diagram is displayed according to the scaling, so that the user can conveniently check the data flow direction link diagram.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Corresponding to the data flow direction display method described in the above embodiments, fig. 4 shows a structural block diagram of the data flow direction display device provided in the embodiments of the present application, and for convenience of description, only the portions related to the embodiments of the present application are shown.
As shown in fig. 4, the presentation means of the data flow comprises,
an obtaining module 10, configured to obtain at least one data flow direction information from a block chain in response to a received data flow direction display request, where each data flow direction information includes two participating objects and a data flow direction between the two participating objects;
a first computing module 20, configured to generate a tree structure according to the at least one data flow direction information, where the tree structure includes at least two nodes and a data flow direction between the at least two nodes, and each node corresponds to one participating object;
a determining module 30, configured to determine coordinates of each node and a connection manner between the nodes according to the tree structure;
a second calculating module 40, configured to generate a data flow direction link diagram according to the coordinates of the nodes and the connection manner between the nodes;
and a display module 50, configured to display the data flow link diagram.
In a possible implementation manner, the determining module 30 is specifically configured to:
acquiring a preset link diagram display mode;
determining the coordinates of each node according to the link diagram display mode and the tree structure;
and determining a connection mode between the nodes according to the coordinates of the nodes.
In a possible implementation manner, the link diagram display manner includes a horizontal display manner or a vertical display manner.
In a possible implementation manner, the determining module 30 is specifically configured to:
determining the coordinates of the designated nodes in the nodes according to the display mode of the link diagram;
determining the coordinate relation among the nodes according to the tree structure;
and determining the coordinates of each node according to the coordinates of the designated nodes and the coordinate relation.
In a possible implementation manner, the display apparatus for displaying the data flow direction further includes a display module, where the display module is configured to:
and displaying a link where a target node is located according to a preset display format, wherein the target node is a selected node in the at least two nodes.
In one possible implementation, the display module is further configured to:
receiving a scaling;
scaling the data flow to a link map according to the scaling.
In a possible implementation manner, the display apparatus for the data flow direction further includes a recording module, where the recording module is configured to:
acquiring transaction information;
generating the data flow direction information according to the transaction information;
and recording the data stream information in the block chain.
In a possible implementation manner, the data flow direction information further includes time and state information corresponding to the data flow direction; correspondingly, the second calculating module 40 is specifically configured to:
and generating a data flow direction link diagram according to the coordinates of the nodes, the connection mode among the nodes and the time and state information.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Fig. 5 is a schematic diagram of an electronic device provided in an embodiment of the present application. As shown in fig. 5, the electronic apparatus of this embodiment includes: a processor 11, a memory 12 and a computer program 13 stored in said memory 12 and executable on said processor 11. The processor 11 executes the computer program 13 to implement the steps in the above-mentioned embodiment of the data flow direction display method, such as steps S101 to S103 shown in fig. 1. Alternatively, the processor 11, when executing the computer program 13, implements the functions of each module/unit in the above-mentioned device embodiments, such as the functions of the acquisition module 10 to the display module 50 shown in fig. 4.
Illustratively, the computer program 13 may be partitioned into one or more modules/units, which are stored in the memory 12 and executed by the processor 11 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 13 in the electronic device.
The electronic device may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing device. Those skilled in the art will appreciate that fig. 5 is merely an example of an electronic device and is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 11 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 12 may be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. The memory 12 may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device. Further, the memory 12 may also include both an internal storage unit and an external storage device of the electronic device. The memory 12 is used for storing the computer program and other programs and data required by the electronic device. The memory 12 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described apparatus/electronic device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (11)

1. A method for displaying data flow direction is characterized by comprising the following steps:
responding to a received data flow display request, and acquiring at least one piece of data flow information from a block chain, wherein each piece of data flow information comprises two participating objects and a data flow between the two participating objects;
generating a tree structure according to the at least one piece of data flow direction information, wherein the tree structure comprises at least two nodes and data flow directions between the at least two nodes, and each node corresponds to one participating object;
determining coordinates of all nodes and a connection mode among all nodes according to the tree structure;
generating a data flow direction link diagram according to the coordinates of the nodes and the connection mode among the nodes;
and displaying the data flow direction link diagram.
2. The method for displaying data flow direction according to claim 1, wherein the determining coordinates of each node and a connection manner between each node according to the tree structure includes:
acquiring a preset link diagram display mode;
determining the coordinates of each node according to the link diagram display mode and the tree structure;
and determining a connection mode between the nodes according to the coordinates of the nodes.
3. The method according to claim 2, wherein the link map display manner includes a horizontal display manner or a vertical display manner.
4. The method for displaying data flow direction according to claim 2, wherein the determining coordinates of each node according to the link diagram display manner and the tree structure includes:
determining the coordinates of the designated nodes in the nodes according to the display mode of the link diagram;
determining the coordinate relation among the nodes according to the tree structure;
and determining the coordinates of each node according to the coordinates of the designated nodes and the coordinate relation.
5. The method of claim 1, wherein after said exposing the data flow direction link graph, the method further comprises:
and displaying a link where a target node is located according to a preset display format, wherein the target node is a selected node in the at least two nodes.
6. The method of claim 1, wherein after said exposing the data flow direction link graph, the method further comprises:
receiving a scaling;
scaling the data flow to a link map according to the scaling.
7. The method for displaying data stream according to claim 1, wherein before said obtaining at least one data stream information from a block chain, the method comprises:
acquiring transaction information;
generating the data flow direction information according to the transaction information;
and recording the data stream information in the block chain.
8. The method for displaying data flow direction according to claim 1, wherein the data flow direction information further includes time and status information corresponding to the data flow direction; correspondingly, the generating a data flow direction link diagram according to the coordinates of the nodes and the connection mode among the nodes includes:
and generating a data flow direction link diagram according to the coordinates of the nodes, the connection mode among the nodes and the time and state information.
9. A device for displaying data stream, comprising:
the data flow direction display module is used for responding to a received data flow direction display request and obtaining at least one piece of data flow direction information from a block chain, wherein each piece of data flow direction information comprises two participating objects and a data flow direction between the two participating objects;
a first computing module, configured to generate a tree structure according to the at least one piece of data flow direction information, where the tree structure includes at least two nodes and a data flow direction between the at least two nodes, and each node corresponds to one participating object;
the determining module is used for determining the coordinates of all the nodes and the connection mode among all the nodes according to the tree structure;
the second calculation module is used for generating a data flow direction link diagram according to the coordinates of the nodes and the connection mode among the nodes;
and the display module is used for displaying the data flow direction link diagram.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
CN202011465839.4A 2020-12-14 2020-12-14 Data flow display method and device, electronic equipment and storage medium Active CN112506976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011465839.4A CN112506976B (en) 2020-12-14 2020-12-14 Data flow display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011465839.4A CN112506976B (en) 2020-12-14 2020-12-14 Data flow display method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112506976A true CN112506976A (en) 2021-03-16
CN112506976B CN112506976B (en) 2023-05-12

Family

ID=74972878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011465839.4A Active CN112506976B (en) 2020-12-14 2020-12-14 Data flow display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112506976B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115509869A (en) * 2022-08-26 2022-12-23 国科础石(重庆)软件有限公司 Service call chain data visual display method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040267770A1 (en) * 2003-06-25 2004-12-30 Lee Shih-Jong J. Dynamic learning and knowledge representation for data mining
CN101556718A (en) * 2009-05-21 2009-10-14 中国建设银行股份有限公司 Multistage account fund management system and device
CN106295912A (en) * 2016-08-30 2017-01-04 成都科来软件有限公司 A kind of method and device based on service logic, transaction path being configured, representing
CN110442641A (en) * 2019-08-06 2019-11-12 中国工商银行股份有限公司 A kind of link topology figure methods of exhibiting, device, storage medium and equipment
CN110737660A (en) * 2019-09-24 2020-01-31 南京南瑞继保电气有限公司 data processing method, device and computer readable storage medium
CN111737493A (en) * 2020-06-23 2020-10-02 平安科技(深圳)有限公司 Abnormal data source output method and device based on decision tree and computer equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040267770A1 (en) * 2003-06-25 2004-12-30 Lee Shih-Jong J. Dynamic learning and knowledge representation for data mining
CN101556718A (en) * 2009-05-21 2009-10-14 中国建设银行股份有限公司 Multistage account fund management system and device
CN106295912A (en) * 2016-08-30 2017-01-04 成都科来软件有限公司 A kind of method and device based on service logic, transaction path being configured, representing
CN110442641A (en) * 2019-08-06 2019-11-12 中国工商银行股份有限公司 A kind of link topology figure methods of exhibiting, device, storage medium and equipment
CN110737660A (en) * 2019-09-24 2020-01-31 南京南瑞继保电气有限公司 data processing method, device and computer readable storage medium
CN111737493A (en) * 2020-06-23 2020-10-02 平安科技(深圳)有限公司 Abnormal data source output method and device based on decision tree and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈汇文等: "数字加密货币网络拓扑结构特征分析", 《电子技术与软件工程》, 15 October 2020 (2020-10-15) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115509869A (en) * 2022-08-26 2022-12-23 国科础石(重庆)软件有限公司 Service call chain data visual display method and device and electronic equipment
CN115509869B (en) * 2022-08-26 2023-10-31 国科础石(重庆)软件有限公司 Method and device for visual display of service call chain data and electronic equipment

Also Published As

Publication number Publication date
CN112506976B (en) 2023-05-12

Similar Documents

Publication Publication Date Title
US11842438B2 (en) Method and terminal device for determining occluded area of virtual object
CN111815754A (en) Three-dimensional information determination method, three-dimensional information determination device and terminal equipment
CN111127590B (en) Second-order Bezier curve drawing method and device
CN111582815A (en) Engineering management method and device for nuclear power station, terminal equipment and storage medium
JP3884195B2 (en) Apparatus and method for distributing design and fabrication information throughout a sheet metal fabrication facility
CN110941488A (en) Task processing method, device, equipment and storage medium
CN108446989B (en) Method for determining commission charge and terminal equipment
CN110290166A (en) Across company-data exchange method, system, device and readable storage medium storing program for executing
WO2020103220A1 (en) Product positioning method and device and terminal device
CN112070456A (en) Task issuing method, terminal equipment, robot and storage medium
CN114417780B (en) State synchronization method and device, electronic equipment and storage medium
CN112506976A (en) Data flow direction display method and device, electronic equipment and storage medium
CN112667638B (en) Dynamic report generation method and device, terminal equipment and readable storage medium
CN111899018B (en) Order data processing method, device, server and storage medium
CN113902411A (en) Project time progress display method and device, terminal and storage medium
CN112527280A (en) Interface display method and device, server and readable storage medium
CN115131192B (en) Data processing method, device and equipment based on graphic pipeline and storage medium
CN111553962A (en) Chart display method, system and display equipment
CN112464753B (en) Method and device for detecting key points in image and terminal equipment
CN113760237A (en) Compiling address updating method and device, terminal equipment and readable storage medium
CN114036721A (en) Method and device for constructing three-dimensional temperature cloud field of micro-module
CN111209248A (en) Edge calculation server and edge calculation method
CN112989200B (en) Method for providing commodity use information and method for improving associated information based on comment information
CN113656486B (en) Method, device, terminal equipment and storage medium for generating visualized object
CN116150438B (en) Data processing method and device based on transaction map

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant