sample buttion is added for indegree and outdegree