An important node search method based on network diameter
A search method and technology for important nodes, applied in data exchange networks, digital transmission systems, electrical components, etc., can solve problems such as the importance of nodes in special locations that are rarely studied
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0038] The present invention will be further described below in conjunction with the drawings.
[0039] Such as figure 1 As shown, an important node search method based on network diameter includes the following steps:
[0040] Step 1. Choose a suitable data structure to store the network, and choose adjacency linked list or adjacency matrix;
[0041] Step 2. Define variables and initialize them, including the following sub-steps:
[0042] (a) Initialize the diameter, diameter=0;
[0043] (b) Initialize the queue Q, and use Q to traverse the hierarchy in the subsequent steps;
[0044] (c) Initialize the stack S. In the subsequent steps, the information of the traversal tree whose depth is equal to the diameter is stored in the stack; among them, let the bottom node of the traversal tree be bLNode, and the middle layer node is mLNode. If the diameter is an even number, then the middle layer There is only one layer, if the diameter is odd, the middle layer is two layers;
[0045] (d) Init...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


