Fix bug to display node indegree and outdegree