Added function to calculate network efficiency using Latora and Machiori's method