betweeness for weighted graphs first step