Added some oriented graph's function (in and out degree)