Implementing Betweenness as part of a SocialNetworks class