# 可见性图

可见性图是一种图，其顶点是平面上的点或多边形顶点，其边恰好连接那些能够互相看见的点对，也就是说，两点之间的直线段不穿越任何障碍物。在机器人学中，它是多边形障碍物间最短路径规划的经典路线图方法；在计算几何中，它是一种编码多边形和点集视线结构的数据结构。<sup>[1](https://shengchen-liu.github.io/robotics_gitbook/path_planning/visibility_graph.html)</sup><sup> • </sup><sup>[2](https://www.cs.ubc.ca/~kirk/cs516/MountNotes2007.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 顶点为起点、终点及所有障碍物顶点；当两节点之间的线段完全位于障碍物内部之外时，两点之间连边，但该线段可以沿障碍物边缘行进<sup>[1](https://shengchen-liu.github.io/robotics_gitbook/path_planning/visibility_graph.html)</sup> |
| 路径保证 | 在多边形世界中，最短路径仅在障碍物角点处转弯，因此该图包含最短路径；在欧几里得加权图上运行Dijkstra算法即可找到它<sup>[3](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)</sup> |
| 规模 | 该图不是平面图，边数可达Ω(n²)；对于n条线段，已知有O(n²)时间的构造方法<sup>[2](https://www.cs.ubc.ca/~kirk/cs516/MountNotes2007.pdf)</sup> |
| 主要缺陷 | 最优路径紧贴障碍物角点，不留间隙；标准补救方法是在建图前将障碍物按机器人半径膨胀<sup>[3](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)</sup> |
| 识别问题，简单多边形 | 判定一个图是否为某个简单多边形的可见性图是一个长期未解的开放问题，甚至不知道是否属于NP<sup>[4](https://doi.org/10.1142/S0218195995000179)</sup> |
| 识别问题，其他类别 | 对于点可见性图和带洞多边形，识别问题是实数存在理论完全的<sup>[5](https://arxiv.org/abs/1503.07082)</sup><sup> • </sup><sup>[6](https://arxiv.org/abs/1804.05105)</sup> |
| 优化难度 | 多边形可见性图中的最大独立集、最小顶点覆盖和最大支配集问题均为NP完全<sup>[4](https://doi.org/10.1142/S0218195995000179)</sup> |

## 定义与构造

在运动规划中，多边形构型空间的可见性图连接起点节点、终点节点和每个障碍物顶点，当两节点之间的连接线段无碰撞时，两点之间连边——这意味着线段可以接触障碍物顶点或沿障碍物边缘行进，但不得穿越障碍物内部。<sup>[1](https://shengchen-liu.github.io/robotics_gitbook/path_planning/visibility_graph.html)</sup><sup> • </sup><sup>[19](https://motion.cs.illinois.edu/RoboticSystems/GeometricMotionPlanning.html)</sup> 在大卫·芒特（David Mount）的计算几何讲义的一般表述中，两个顶点互相可见，或者它们之间的线段是某个障碍物的边时，两点之间连边。<sup>[2](https://www.cs.ubc.ca/~kirk/cs516/MountNotes2007.pdf)</sup>

**为何只用顶点。** 当世界由多边形组成时，一条无碰撞的最短路线必然在其绕过的每个障碍物的某个角点处与之接触：一条与障碍物保持一定距离通过的路线，总可以通过向内拉近使其紧贴该角点而变得更短。因此，角点是最短路径唯一可能转弯的位置，仅用这些点建图不会遗漏任何路径。<sup>[3](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)</sup>

朴素构造方法检查所有O(n²)个顶点对，并将每条边与n条障碍物直线进行测试，得到O(n³)算法；已知有更高效的O(n²)方法，而图本身可能包含Ω(n²)条边，因此在最坏情况下，任何输出敏感方法都无法优于二次时间。<sup>[7](https://arxiv.org/abs/2305.04614)</sup><sup> • </sup><sup>[2](https://www.cs.ubc.ca/~kirk/cs516/MountNotes2007.pdf)</sup> 精确距离计算还需要平方根之和，通常用浮点数近似，因为对于整数的任意平方根的精确算术，尚不知道有多项式时间方法。<sup>[2](https://www.cs.ubc.ca/~kirk/cs516/MountNotes2007.pdf)</sup>

## 在运动规划中的应用

建图完成后，每条边标注其欧几里得长度，再用Dijkstra算法或A*等图搜索方法找到从起点到终点的最短路径。<sup>[2](https://www.cs.ubc.ca/~kirk/cs516/MountNotes2007.pdf)</sup><sup> • </sup><sup>[1](https://shengchen-liu.github.io/robotics_gitbook/path_planning/visibility_graph.html)</sup> 该方法是完备的——只要路径存在，就能在有限时间内返回一条路径——并且在最短欧几里得路径度量下是最优的。<sup>[8](https://dorsa.fyi/cs333-2017/handouts/lecture1.pdf)</sup>

**间隙问题。** 最优路径沿着障碍物角点行进，对于有体积的机器人来说，这意味着擦碰角点。标准补救方法是在建图前将障碍物按机器人半径膨胀，使得为质点规划的路径对真实机器可行；这是构型空间构造的非正式版本。<sup>[3](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)</sup> 路线图方法的综述描述了与Voronoi图之间的同样权衡——后者最大化障碍物间隙，但产生更长的路径。<sup>[9](https://www.mdpi.com/2227-7080/14/6/337)</sup><sup> • </sup><sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC11086376/)</sup>

该方法假设构型空间中为多边形障碍物，不能直接处理曲线障碍物（除非用大量顶点近似），且在高维空间中难以计算；在超过二维的构型空间中，精确解已被证明是NP难的。<sup>[8](https://dorsa.fyi/cs333-2017/handouts/lecture1.pdf)</sup><sup> • </sup><sup>[11](https://www.researchgate.net/publication/220061225_A_Survey_of_Motion_Planning_Algorithms_from_the_Perspective_of_Autonomous_UAV_Guidance)</sup><sup> • </sup><sup>[12](https://www.sciencedirect.com/topics/engineering/restricted-visibility)</sup>

**动态与惰性变体。** 由于构建完整图代价高昂，且环境变化时图会过时，若干方法只计算或维护图的一部分。Minimal Construct算法从起点到终点的一条直线边开始，仅当当前路径与障碍物碰撞时才添加可见性边，且只对启发式上有希望的线段进行碰撞检测；仿真表明，在动态变化的地图中，其重计算路径的速度比基于栅格的A*快约四倍。<sup>[7](https://arxiv.org/abs/2305.04614)</sup> FAR Planner用双层数据结构增量维护全局可见性图，随着导航推进扩展可见性边，并移除被新观测到的障碍物遮挡的边；在未知环境中，与A*和D* Lite相比，它将旅行时间减少了最多12-47%，与RRT*、BIT*和SPARS相比减少了超过24-35%。<sup>[13](https://arxiv.org/abs/2110.09460)</sup> 对于障碍物会增加或丢失顶点的多边形区域，动态算法在每次插入或删除时以O(k(lg n')² + h)最坏情况时间更新存储可见性图的数据结构，其中k是组合变化数，h是障碍物数。<sup>[14](https://arxiv.org/abs/2011.09925)</sup>

## 识别与复杂度

**开放问题。** 识别任务问的是：给定一个输入图，它是否同构于某个简单多边形的可见性图。对于简单多边形，这个问题已被广泛研究但仍悬而未决；甚至不知道它是否属于NP——如果每个n顶点可见性图都能由画在指数大小网格上的多边形实现，则问题将属于NP。<sup>[6](https://arxiv.org/abs/1804.05105)</sup><sup> • </sup><sup>[4](https://doi.org/10.1142/S0218195995000179)</sup> 戈什（Ghosh）提出了若干简单的必要条件并猜测它们是充分的；这些猜想在2005年被伊莱亚娜·斯特雷努（Ileana Streinu）通过伪可见性图——伪直线排列在可见性问题中的对应物——所推翻。<sup>[5](https://arxiv.org/abs/1503.07082)</sup>

**更难的变体已有定论。** 让·卡迪纳尔（Jean Cardinal）和乌多·霍夫曼（Udo Hoffmann）在2015年证明了，识别点可见性图——其中点本身充当障碍物——是实数存在理论（∃ℝ）完全的，该复杂性类包含所有可归约为判定实多项式等式与不等式的无量词公式是否有解的问题；已知的包含关系仅有NP ⊆ ∃ℝ ⊆ PSPACE。<sup>[5](https://arxiv.org/abs/1503.07082)</sup> 识别带洞多边形的可见性图，以及在给定内部和外部可见性图的情况下识别简单多边形，也是∃ℝ完全的。<sup>[6](https://arxiv.org/abs/1804.05105)</sup> ∃ℝ完全性有几何推论：某些点可见性图根本不允许整数坐标的实现，而某些在任何网格实现中都需要大小为2^(2^(∛n))的坐标。<sup>[5](https://arxiv.org/abs/1503.07082)</sup>

**面积需求。** 当时在石溪大学（Stony Brook）的计算机科学家林耀龄（Yaw-Ling Lin）和史蒂文·斯基纳（Steven Skiena）证明了：实现完全可见性图K_n需要且仅需要Θ(n³)面积；某些可见性图需要指数面积才能实现；直径为d的极大外平面图可在O(d² · 2^d)面积内实现，对于平衡的情形可小至O(n log² n)，而线性极大外平面图可容纳于O(n⁸)面积内。<sup>[4](https://doi.org/10.1142/S0218195995000179)</sup>

**可见性图上的优化。** 给定多边形P，在其可见性图中寻找最大独立集、最小顶点覆盖或最大支配集是NP完全的，而判定两个多边形是否具有同构的可见性图是同构完全的；即使可见性图本身作为输入给出，这些问题仍然是难的。<sup>[4](https://doi.org/10.1142/S0218195995000179)</sup>

## 变体与相关结构

若干相关的图类由相同的可见性关系产生。点可见性图由平面上的一组点诱导，当两点之间的开线段不包含集合中其他点时，两点相邻。<sup>[5](https://arxiv.org/abs/1503.07082)</sup> 在障碍物表示中，图由点和多边形障碍物表示，互相可见的点之间连边；一个图的障碍物数是最少需要的障碍物数量，而n阶平面图的最大平面障碍物数为n − 3。<sup>[15](https://arxiv.org/abs/1706.06992)</sup> 对于单个障碍物，具有内部障碍物表示的图类与具有外部障碍物表示的图类不可比较，且任何至多七个顶点或最长圈长度至多为6的图都有外部障碍物表示。<sup>[16](https://arxiv.org/abs/1607.00278)</sup> 边可见性图中，当多边形一条边上的某点能看见另一条边上的某点时，两条边可见；该结构支持边到边的可见性查询，在O(n log n)预处理后可在O(n)时间内回答。<sup>[17](https://www.sciencedirect.com/science/article/pii/0167865586900152)</sup>

除路径规划外，可见性图还用于画廊与守卫问题、测地最短路径、最少线段路径和弱可见性计算，并且仍然是机器人导航系统的标准组成部分，包括近期为人形足球机器人设计的规划器——它们在图中增加了转弯代价。<sup>[14](https://arxiv.org/abs/2011.09925)</sup><sup> • </sup><sup>[18](https://arxiv.org/abs/2504.02184)</sup>

## References

1. [Visibility Graph, Robotics learning Notes (Shengchen Liu)](https://shengchen-liu.github.io/robotics_gitbook/path_planning/visibility_graph.html)
2. [Computational Geometry Notes: Visibility Graphs, David M. Mount, University of Maryland](https://www.cs.ubc.ca/~kirk/cs516/MountNotes2007.pdf)
3. [RAS University: Motion Planning, IEEE Robotics and Automation Society](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)
4. [Yaw-Ling Lin and Steven S. Skiena (1995). Complexity Aspects of Visibility Graphs. International Journal of Computational Geometry & Applications](https://doi.org/10.1142/S0218195995000179)
5. [Jean Cardinal and Udo Hoffmann (2015). Recognition and Complexity of Point Visibility Graphs. arXiv](https://arxiv.org/abs/1503.07082)
6. [Recognizing Visibility Graphs of Polygons with Holes and Internal-External Visibility Graphs of Polygons. arXiv](https://arxiv.org/abs/1804.05105)
7. [Shirwatkar, Singh, and Jana Ravi Kiran (2023). Reducing Onboard Processing Time for Path Planning in Dynamically Evolving Polygonal Maps. arXiv](https://arxiv.org/abs/2305.04614)
8. [CS 333: Safe and Interactive Robotics, Lecture 1: Motion Planning](https://dorsa.fyi/cs333-2017/handouts/lecture1.pdf)
9. [Optimisation Techniques for Multi-Robot Path Planning: A Review. Technologies (MDPI)](https://www.mdpi.com/2227-7080/14/6/337)
10. [Bridging Requirements, Planning, and Evaluation: A Review of Social Robot Navigation. PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC11086376/)
11. [A Survey of Motion Planning Algorithms from the Perspective of Autonomous UAV Guidance](https://www.researchgate.net/publication/220061225_A_Survey_of_Motion_Planning_Algorithms_from_the_Perspective_of_Autonomous_UAV_Guidance)
12. [Restricted Visibility, ScienceDirect Topics](https://www.sciencedirect.com/topics/engineering/restricted-visibility)
13. [Yang, Cao, Zhu, Oh, and Zhang (2021). FAR Planner: Fast, Attemptable Route Planner using Dynamic Visibility Update. arXiv](https://arxiv.org/abs/2110.09460)
14. [Agrawal and Inkulu (2020). Visibility Polygons and Visibility Graphs among Dynamic Polygonal Obstacles in the Plane. arXiv](https://arxiv.org/abs/2011.09925)
15. [Gimbel, Ossona de Mendez, and Valtr (2017). Obstacle Numbers of Planar Graphs. arXiv](https://arxiv.org/abs/1706.06992)
16. [Chaplick, Lipp, Park, and Wolff (2016). Obstructing Visibilities with One Obstacle. arXiv](https://arxiv.org/abs/1607.00278)
17. [Godfried T. Toussaint (1986). Shortest path solves edge-to-edge visibility in a polygon. Theoretical Computer Science](https://www.sciencedirect.com/science/article/pii/0167865586900152)
18. [Model Predictive Control with Visibility Graphs for Humanoid Path Planning and Tracking Against Adversarial Opponents. arXiv](https://arxiv.org/abs/2504.02184)
19. [motion.cs.illinois.edu](https://motion.cs.illinois.edu/RoboticSystems/GeometricMotionPlanning.html)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Graph theory › Graph theory subfields and named results › Geometric graph theory

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/visibility-graph

English original: https://www.edgepedia.org/visibility-graph
