Fix up code organization more, add metric to compute distance-dependent weight distribution. Add function to create random weighted graph by sampling distant-dependent weights from real data.