Home > matgraph > @graph > vertex_degree_sequence.m

vertex_degree_sequence

PURPOSE ^

find the degrees of the neighbors of a vertex

SYNOPSIS ^

function ds = vertex_degree_sequence(g,v)

DESCRIPTION ^

 find the degrees of the neighbors of a vertex

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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);

Generated on Thu 13-Mar-2008 14:23:52 by m2html © 2003