Dissecting embedding method: learning higher-order structures from data