Self-assembly of a PTCDI–melamine supramolecular network. a, b, Chemical structure of PTCDI (a) and melamine (b). Dotted lines represent the stabilizing hydrogen bonds between the molecules.