Boundary vs. Edge
“Boundary” and “edge” both describe where a shape ends, but they come from different parts of mathematics. The boundary of a set is everything that touches both the set and its outside. An edge is a segment of a polygon or polyhedron, or a connection in a graph.
Definitions
Consider a shape drawn on a piece of paper using a continuous line that forms a closed loop. There is a portion of the paper that is inside the shape and a portion that is outside. The boundary of the shape is curve that separates the inside from the outside.
Consider a set $A \subseteq \reals^n$ and a point $x$. The point $x$ is in the boundary of $A$ if every open ball around $x$ contains both a point of $A$ and a point not in $A$.
Consider a subset $A$ of a topological space, with its closure $\closure{A}$ and its interior $\operatorname{int}(A)$. The boundary of $A$ is
\[\partial A = \closure{A} \setdiff \operatorname{int}(A).\]Examples
-
The six faces form the boundary of the solid cube because every ball around a point of a face contains points inside and outside the cube.
-
The unit circle is the boundary of the closed unit disk because every ball around a point of the circle contains points inside and outside the disk.
-
$\reals$ is the boundary of $\rationals$ because every interval contains rational and irrational numbers, so every real number is a boundary point of $\rationals$.
Non-examplesThings that may be mistaken for examples of this term.
-
One side of a square is not the boundary of the square, because the boundary consists of all four sides.
-
The connection between two people in a social network is not a boundary, because a graph edge is a pair of vertices, with no geometry.
Worked examples
-
Value:
Its four edges
Every small disk around a point on an edge reaches both inside and outside the square, so the edges are the boundary. -
Value:
$\partial D = \setdef{(x, y) \suchthat x^2 + y^2 = 1}$
The boundary of the closed unit disk $D$ is the unit circle. -
Value:
$\partial [0, 1] = \setdef{0, 1}$
The boundary of $[0, 1]$ is $\setdef{0, 1}$, because every interval around $0$ or $1$ contains points inside and outside $[0, 1]$. -
Value:
$\partial [0, 1) = \setdef{0, 1}$
The boundary contains $1$ even though the set does not, and $0$ even though the set does. -
Value:
$\partial (0, 1) = \setdef{0, 1}$
The boundary of $(0, 1)$ is $\setdef{0, 1}$, because every interval around $0$ or $1$ contains points inside and outside $(0, 1)$. -
Value:
$\partial \rationals = \reals$
Every interval contains both rational and irrational numbers, so every real number is a boundary point.
Properties
- $\partial A = \closure{A} \cap \closureOf{X \setdiff A}$, so a set and its complement have the same boundary.
- The boundary of every set is closed.
- A set $A$ is closed if and only if it contains its boundary: $\partial A \subset A$,
- A set $A$ is open if and only if it is disjoint from its boundary: $\partial A \cap A = \emptyset$.
A polygon is a 2D shape with straight sides that form a loop. Each side is called an edge of the polygon.
In 2D, an edge of the polygon is a line segment between two adjacent vertices (one of its sides). In 3D, an edge of the polyhedron is a segment where two of its faces meet, such as the 12 line segments separating the faces of a cube.
Examples
-
One side of a square is an edge of the square, viewed as a polygon.
Non-examplesThings that may be mistaken for examples of this term.
-
The connection between two people in a social network is not an edge of a polygon, because a graph edge is a pair of vertices, with no geometry.
-
The surface (six faces) of a solid cube is not an edge (or edges) of the cube. Instead, the edges are the twelve segments where the faces meet.
-
The unit circle is not an edge of a polygon, because the closed unit disk has no straight sides.
Imagine a network drawn as dots joined by lines, like a map of cities and roads. Each line connecting two dots in the network is called an edge.
Consider a graph, made of a set of vertices and a set of edges. An edge of the graph is an element of its edge set. In a simple undirected graph, an edge is an unordered pair $\setdef{u, v}$ of distinct vertices.
Examples
-
The connection is an edge of a graph whose vertices are people.
Non-examplesThings that may be mistaken for examples of this term.
-
The unit circle is not an edge of a graph, because it is not a link between two vertices.
Examples
| Example | boundary | edge (of a polygon or polyhedron) | edge (of a graph) | Why |
|---|---|---|---|---|
| The unit circle, for the closed unit disk in $\reals^2$ | ✓ | ✗ | ✗ | boundary: The unit circle is the boundary of the closed unit disk because every ball around a point of the circle contains points inside and outside the disk.
edge (of a polygon or polyhedron): The unit circle is not an edge of a polygon, because the closed unit disk has no straight sides.
edge (of a graph): The unit circle is not an edge of a graph, because it is not a link between two vertices.
|
| One side of a square | ✗ | ✓ | – | boundary: One side of a square is not the boundary of the square, because the boundary consists of all four sides.
edge (of a polygon or polyhedron): One side of a square is an edge of the square, viewed as a polygon.
|
| The surface (six faces) of a solid cube | ✓ | ✗ | – | boundary: The six faces form the boundary of the solid cube because every ball around a point of a face contains points inside and outside the cube.
edge (of a polygon or polyhedron): The surface (six faces) of a solid cube is not an edge (or edges) of the cube. Instead, the edges are the twelve segments where the faces meet.
|
| The connection between two people in a social network | ✗ | ✗ | ✓ | boundary: The connection between two people in a social network is not a boundary, because a graph edge is a pair of vertices, with no geometry.
edge (of a polygon or polyhedron): The connection between two people in a social network is not an edge of a polygon, because a graph edge is a pair of vertices, with no geometry.
edge (of a graph): The connection is an edge of a graph whose vertices are people.
|
| $\reals$, for $\rationals \subseteq \reals$ | ✓ | – | – | boundary: $\reals$ is the boundary of $\rationals$ because every interval contains rational and irrational numbers, so every real number is a boundary point of $\rationals$.
|
Notes
- The boundary of every set is closed.