TL;DR
A simplicial complex is a way to build a shape out of points, line segments, filled triangles, filled tetrahedra and their higher analogues, all glued along shared faces. It solves the problem that a Graph records only pairs of things, while many real shapes need groups of three or more things to be joined. The key rule is that every face of a piece must also be in the collection, which keeps the pieces fitting together cleanly.
Builds on: Graph, Power Set · Leads to: Fuzzy Simplicial Set
Where it's used
- Triangle meshes in computer graphics. A 3D model of a character or a car is stored as a list of vertices and triangles. Each triangle is a simplex, and the set of all vertices, edges and triangles is a simplicial complex. Renderers, physics engines and mesh-editing tools all rely on the rule that two triangles meeting along an edge share that edge exactly.
- Point clouds from sensors. A lidar scan of a room gives millions of points, a point cloud. Topological data analysis, a field that uses the shape of data to find structure, builds a complex on those points by joining any two points closer than a chosen distance, and then by filling in groups of points that are all mutually close. The resulting complex can show holes and loops in the data that are invisible to a plain Graph.
- Manifold learning in machine learning. Manifold learning assumes that high-dimensional data lies close to a lower-dimensional shape, and it is one form of dimensionality reduction. Methods such as UMAP build a weighted version of a simplicial complex on high-dimensional data, then lay it out in two or three dimensions. The fuzzy version of this structure is the subject of fuzzy simplicial sets, which is why this node is a prerequisite for them.
How it works
The simplest building blocks are called simplices. They extend the vertices and edges of a Graph to higher dimensions. A vertex is a 0-simplex, an edge joining two vertices is a 1-simplex, a filled triangle is a 2-simplex, and a filled tetrahedron is a 3-simplex. The number of vertices minus one is the dimension.
The rule that makes a collection of simplices a complex is closure under faces. A face of a simplex is any non-empty subset of its vertices. If a triangle is in the complex, then its three edges and its three vertices must be in it too.
Trace the smallest interesting case: three points , and .
- Start with the full triangle . This is a 2-simplex. Check: it has 3 vertices, so its dimension is .
- Its faces are the subsets with two vertices: , and . Each is an edge, a 1-simplex, and each must be in the complex. Check: a triangle has 3 edges.
- Its faces with one vertex are , and . These are the 0-simplices, and they must be in the complex too. Check: there are 3 vertices, so the full triangle carries 7 non-empty faces in total, counting itself.
- Now try to keep only the triangle and drop its edges. This is not a simplicial complex, because the edge is a face of the triangle and is missing. Check: removing a face breaks the rule, so the collection is invalid.
- Count the pieces of the complete example. There are vertices, edges and triangle. These counts are the f-vector of the complex. Check: .
The diagram below shows the faces of the full triangle as a small picture. Each arrow points from a simplex to one of its faces. Closure means every arrow path ends in the complex.
flowchart TD
T["{a, b, c} triangle"] --> E1["{a, b} edge"]
T --> E2["{a, c} edge"]
T --> E3["{b, c} edge"]
E1 --> A["{a} vertex"]
E1 --> B["{b} vertex"]
E2 --> A
E2 --> C["{c} vertex"]
E3 --> B
E3 --> C
Once the rule is clear, the Euler characteristic is a single number built from the f-vector: . It is a quick fingerprint of the shape. The next section writes this down precisely.
The math
Let be a finite set of vertices. A simplicial complex on is a collection of non-empty subsets of such that, whenever and is a non-empty subset of , then . Each set in is a simplex. Its dimension is , and the dimension of is the largest dimension of its simplices.
Step 1 in symbols: simplices as subsets
A simplex is just a subset of the vertex set. The triangle in the walkthrough is , which has vertices, so .
Step 2 in symbols: the closure rule
The rule does not require the whole power set of , only its non-empty subsets. Every non-empty subset must also be a member of . For the required subsets are
That is subsets. The power set of has 8 members, and the empty set is the one excluded here.
Step 3 in symbols: the f-vector and the Euler characteristic
Let be the number of -dimensional simplices in . Then the Euler characteristic is
For the full triangle with its faces, , so .
Step 4 in symbols: a graph is a complex of dimension 1
A Graph with vertex set and edge set is a simplicial complex whose simplices are the vertices and the edges. Its Euler characteristic is . The triangle in the walkthrough adds the 2-simplex on top of this graph, which is why rises by one.
Worked examples
- Let and take .
- Check closure: the only simplex of size 2 is . Its non-empty subsets are , and itself, and all three are in .
- The f-vector is , , so .
- The Euler characteristic is .
- Interpretation: the complex is a single segment, which is connected and has no holes, and matches that.
Take four vertices and the graph with edges , , and . Let contain these four edges, the four vertices, and the triangle whose three edges are already present.
- Check closure for the triangle: its non-empty subsets are and . All are in , so the triangle is allowed.
- Check closure for the edge : its faces are and , both in .
- Count the simplices: , and , so .
- Compute .
- Now drop the triangle and keep only the graph. The f-vector becomes , and .
- Interpretation: the filled triangle and the hollow triangle have different Euler characteristics, and . The difference is the 2-simplex. This is why simplicial complexes can see filled regions that a plain graph cannot.
A tetrahedron has 4 vertices, 6 edges and 4 triangular faces. Its surface is a simplicial complex with the four triangles and all their faces.
- Count the vertices: .
- Count the edges: every pair of the 4 vertices is an edge, and there are pairs (the binomial coefficient counts them), so .
- Count the triangles: every choice of 3 of the 4 vertices forms a triangle, and there are of them, so .
- Compute .
- Interpretation: the surface of a tetrahedron is topologically a sphere, meaning it can be stretched and bent into the surface of a ball without cutting or gluing, and the Euler characteristic of a sphere is 2. The count matches the shape, which is why is used to check mesh quality in graphics software.
Try it: a triangulated cube surface has 8 vertices, 18 edges and 12 triangles. Compute its Euler characteristic. Answer: , the same as a sphere, because the cube surface is also a sphere.
Common mistakes and tradeoffs
It is tempting to think a set of triangles is a simplicial complex as long as the triangles are listed. In fact the rule requires every face of every triangle to be listed as well. A mesh whose edges are missing is not a complex, and software built on that assumption will misread the shape.
It is tempting to think a simplicial complex and the solid region it fills are the same object. In fact the complex stores the faces explicitly, and the solid is only one way to realise it. The hollow triangle and the filled triangle have different Euler characteristics, and , which shows that the choice of simplices matters.
It is tempting to think the Euler characteristic identifies a shape uniquely. In fact it is only a summary. Many different shapes share the same value: the hollow triangle, a loop, and a torus (the surface of a doughnut) all have , yet they are not the same shape. One number cannot settle which shape you have.
Use simplicial complexes when the data is naturally made of groups of more than two things, and when you need to keep track of filled regions. Avoid them when a plain graph already captures the structure, since the complex grows quickly with dimension. A cube-shaped mesh with millions of triangles is far more costly to store than its graph of vertices and edges. Alternatives include cell complexes, which use squares or cubes instead of triangles and simplices, and adjacency matrices of plain graphs.
History
For a long time, topologists studied shapes by cutting them into triangles and counting pieces. Leonhard Euler observed in the 1750s that for a convex polyhedron the count of vertices minus edges plus faces is always 2. That observation is the first appearance of the Euler characteristic, and it was a clue that counts of pieces carry information about shape.
In the late 1800s and early 1900s, Henri Poincaré and others made the triangle-based counting precise, and simplicial complexes became the standard tool for describing shapes combinatorially. The modern definition given here, with closure under faces, is the form that stuck, because it makes the counting rules and the algebra that follows from them easy to state. The idea caught on widely once computers needed a finite, exact way to represent shapes, which is what meshes and point clouds still do today.
Recap
- A Graph records pairs of vertices, but many shapes need groups of three or more things joined together.
- A simplicial complex is a collection of simplices (vertices, edges, triangles and higher analogues) closed under taking faces.
- The f-vector counts the simplices in each dimension, and the Euler characteristic is the alternating sum of those counts.
- A filled triangle and a hollow one have different , so filled regions are visible to this structure.
- Read next: Fuzzy Simplicial Set, which generalises this structure to fuzzy membership.
Check yourself
QuestionIn one sentence, what is the closure rule for a simplicial complex?Show answer
Every non-empty subset of a simplex in the complex must itself be in the complex. In other words, if a triangle is present, its three edges and three vertices must be present too.
QuestionA complex on vertices a, b, c, d has f-vector (4, 5, 1). What is its Euler characteristic?Show answer
.
QuestionWhy does a filled triangle have a different Euler characteristic from the hollow triangle with the same three vertices and edges?Show answer
The filled triangle has one extra 2-simplex, the triangle itself, which adds to the alternating sum. The hollow triangle has , while the filled one has . The extra 2-dimensional piece is what the Euler characteristic detects.
QuestionA triangle mesh of a closed surface has 6 vertices, 12 edges and 8 triangles. What is its Euler characteristic, and what shape does that suggest?Show answer
. A value of 2 matches a sphere, so the mesh is consistent with a closed surface shaped like a sphere, such as an octahedron boundary.