Code covered by the BSD License  

Highlights from
Matgraph

from Matgraph by Ed Scheinerman
Toolbox for working with simple, undirected graphs

Description of vertex_degree_sequence
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:
  • deg deg: degree of a vertex or degree sequence
  • neighbors neighbors(g,v) --- neighbors of v as a list.
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

Contact us at files@mathworks.com