compute edge lengths
added small world example