Extracting features from the graph