compute_features function

Computes features for each network.