This example demonstrates how to create a mesh containing hanging nodes. By choosing a special mapping when defining coordinates, hanging nodes are detected and their degrees of freedom (including initial geometry) are mapped to the nodes of the edge of the element in which they hang.