find the degrees of the neighbors of a vertex
0001 function ds = vertex_degree_sequence(g,v) 0002 % find the degrees of the neighbors of a vertex 0003 vv = neighbors(g,v); 0004 ds = []; 0005 for w=vv 0006 ds = [ds,deg(g,w)]; 0007 end 0008 ds = -sort(-ds);