Unfoldings and coverings of weighted graphs