preprocess_graphs function

Read connectivity data from multiple sub-folders.