how to find degree sequence of a graph