added indegree analysis