Nanomaterials: How to separate linear and ring-shaped molecules

What is the difference between linear chains and rings composed of the same material? The molecular building blocks are identical, but from a mathematical point of view the two structures have distinct topologies, namely ring and linear chain. This difference is readily recognizable on a macroscopic scale, as for example a golden ring and a gold bar, but represents a tricky task on the microscopic scale.