In this paper we present an implementation of a computer algorithm that automatically determines the topological structure of spacetime, using a branched covering space representation. This algorithm is applied to a few simple examples in dimension 3, and a complete set of the fundamental groups realized over several graphs is found. We also include some new visualizations of the branched covering construction, in order to aid and clarify the understanding of how these structures can be used in quantum gravity to realize the topological nature of the spacetime foam.
Christopher L Duston (Wed,) studied this question.