Molecular structure with connected abstract shapes