small bugs
now average_coherece can get complex values in "weight" dictionary (in graph edges attributes)