Method and system for quickly calculating size of maximum connected subgraph
A technology of maximum connected subgraph and fast calculation, applied in the field of graph theory and complex network computing, it can solve problems such as inconvenient computer implementation, calculation, and inability to find the maximum connected subgraph.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] see figure 1 , a fast calculation method for the size of the largest connected subgraph, including:
[0031] S1, set the shortest distance matrix D for a graph G containing n nodes n×n ; Specifically, preset d ij The shortest distance matrix is D n×n elements in , where d ij is the shortest distance from point i to point j in graph G, then step S1 includes: if point i cannot reach j, then the shortest distance d from point i to point j ij = inf, where inf is positive infinity; if point i can reach j, then the shortest distance d from point i to point j ij is a constant; if i=j, the shortest distance d ii =0. Among them, graph G is a fully connected graph.
[0032] S2, according to the transformation formula, the shortest distance matrix D n×n Transformed into a reachable matrix A n×n ; The transformation formula is:
[0033]
[0034] Among them, a ij is reachable matrix A n×n Elements.
[0035] S3, will reach matrix A n×n The vectors of are divided in...
Embodiment 2
[0053] The difference between this embodiment and embodiment 1 is that, see Figure 4 , graph G is an unweighted directed graph G containing three subgraphs: According to step S1, its shortest distance matrix D is obtained n×n for:
[0054]
[0055] Among them, in this embodiment, when point i can reach j, then the shortest distance d from point i to point j ij for 1 or 2 or 3.
[0056] According to the transformation formula, the reachable matrix is as follows:
[0057]
[0058] Next, the reachable matrix A n×n Classify, the present embodiment can be divided into six classes, as follows:
[0059]
[0060] Among them, capacity i k They are 4, 3, 1, 1, 1, 1 respectively, and there is a maximally connected subgraph whose node numbers (serial numbers corresponding to column vectors) are 1, 8, 9, 11, from which the maximally connected subgraph of graph G can be calculated The size of the subgraph is G=max(i k ) / n=4 / 11=0.3637, max(i k ) is 4.
[0061] In summary...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com