Change CommunityRank to use directed graphs