compute different kinds of features and generate matching graph