They have the same basic structure, of general formula A2B(T2O7). The melilite structure consist of pairs of fused TO4, where T may be Si, Al, B, in bow-tie form. Sharing one corner, the formula of the pair is T2O7.