Code covered by the BSD License  

Highlights from
Matgraph

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

Description of clear_labels
Home > matgraph > @graph > clear_labels.m

clear_labels

PURPOSE ^

clearl_labels(g) --- delete all labels in g

SYNOPSIS ^

function clear_labels(g)

DESCRIPTION ^

 clearl_labels(g) --- delete all labels in g

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:
  • cayley cayley(g,perms) -- create a Cayley graph (undirected)
  • dot dot(g,filename) --- save graph for use by graphviz.
  • label Assign labels to vertices of g
  • random_bipartite random_bipartite(g,n,m,p) --- create a random bipartite graph
  • random_regular random_regular(g,n,k) --- create a random regular graph

SOURCE CODE ^

0001 function clear_labels(g)
0002 % clearl_labels(g) --- delete all labels in g
0003 
0004 global GRAPH_MAGIC;
0005 GRAPH_MAGIC.graphs{g.idx}.labels = cell(0);
0006 rmfield(GRAPH_MAGIC.graphs{g.idx},'labels');

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

Contact us at files@mathworks.com