Combining Graph Neural Networks and Mixed Integer Linear Programming for Molecular Inference under the Two-Layered Model