R package for calculating restricted betweenness