code for meta-path materalization