There's a few ways to create non-manifold geometry, three or more faces sharing an edge, two or more faces share a single vertex but no edge and adjacent faces have opposite normals. It's all in the manual.