2-dimensional topology-based accessibility Query

Source: Internet
Author: User

2-dimensional topology-based accessibility Query
1. Basic Concepts

In a directed acyclic graph, r (u, v) indicates whether there is a path between u and v. When there is a path between u and v, r (u, v) returns true, that is, u to v is reachable; otherwise, false is returned, that is, not reachable.

Any directed graph can be converted to a directed acyclic graph. For detailed conversion methods, see (http://blog.csdn.net/woniu317/article/details/23658301 ). After the nodes in the same strongly connected component are converted, the nodes become a node. When querying the accessibility, You can first convert them to nodes in the acyclic graph and then query them. Therefore, you only need to study Directed Acyclic graphs for all accessible queries.

2. Basic Ideas

To analyze any topology sequence of an image, you can obtain the following information:

If the node u reaches the node v, the topological sequence number of the u must be smaller than that of the v. That is to say, when the topological sequence number of the node u is greater than that of the v, then u cannot reach v.

As shown in Table 2-1, T1 is a topological sequence of the graph. For example, the sequence numbers from a to h can be reached, and the sequence numbers of a are smaller than h. The serial numbers of g are greater than h, so g cannot be h, which can be verified from Figure 2-1. It is worth noting that even if the serial number of u is smaller than the serial number of v, u may not necessarily reach v, such as node a and B.

It is not difficult to find that there are many node pairs that cannot be trimmed using the topological order in table 2-1, such as (a, B), (a, g), (a, f ). The same situation occurs even if you change the topological order. Therefore, it is better to use both topological order for trimming. But how to obtain the two topological orders so that the pruning effect is better than the NPC problem, so we use an approximate method to obtain the second topological sequence.

Figure 2-1 Figure G

Table 2-1 Figure 2-1 topological Sequence

When the second topology sequence is solved, the first node number with a large topological number is given for all nodes with a 0 inbound level, which enhances the filtering effect of the two-dimensional topology sequence. Figure 2-1 shows the topological sequence number of the second request, as shown in column T2 in Table 2-1.

If u reaches v, the two topological numbers of u must correspond to the topological numbers smaller than v. Similarly, if neither of the two topological sequence numbers of u is smaller than that of v, u cannot reach v.

3. Accessibility Query

Accessibility query uses the depth-first Traversal method. The Query Process is 3-1.

Figure 3-1 Flowchart

References

ReachabilityQueries in Very Large Graphs A Fast Refined Online Search Approach


What is the definition of spatial accessibility?

Spatial accessibility is an important and basic indicator in urban morphology research. Spatial syntaxes quantitatively analyze urban spatial morphology from the perspective of spatial cognition. Taking Chengcheng County, Weinan city, Shaanxi province as an example, this paper uses geographic information system as a technical platform and the excellent data analysis function of GIS software to deepen spatial syntax, this paper analyzes the topology of all levels of urban roads in the new overall planning and control planning of Chengyu County, and analyzes the spatial structure and layout characteristics of the main city in the future from the perspective of urban functions and data. At the same time, it comprehensively analyzes other factors that affect the formation of urban forms and puts forward optimization suggestions for spatial development. In this paper, the Accessibility Theory and GIS technology are combined in urban planning, and a new method for planning evaluation is proposed to help decision makers make optimal decisions.

Definition of topological data in Geographic Information System

Topology (topological) is the meaning of "Research on shape" in Greek. A topological relationship is a data model that reflects the relationship between spatial elements and elements. It is a rule that ensures the integrity of spatial data. Topological Relationships refer to the spatial relationships that are inconvenient to change the topology.
A geographical element with a topological relationship is called a topological element. Points, lines, and surfaces are all topological elements.
-- Excerpted from "GIS in spatial analysis-Principles and Methods", one of my textbooks.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.