small.world function

Calculate graph small-worldness