In an $n$-dimensional space I have a set of simplices where each simplex consists of facets. Some of the simplices are 'connected' by sharing facets. Each facet is made up on edges, each consisting two points. In 3D each simplex is a tetrahedron consisting of triangular facets. I would like to know, if the set of simplices I have is a 'non-manifold'.
In 3D I can check if my mesh is a 'non-manifold' as follows: - select all facets having more or less than two neighboring simplices - select all edges of these facets - per edge, count the number of facets connected to the edge - in case an edge has more of less than 2 neighboring facets, the edge is 'non-manifold'
This algorithm does only work in 3 dimension (3D). What about higher-dimensional sets of simplices? How can I determine, if an $n$-dimensional mesh of simplices is non-manifold?
Thank you!