Code covered by the BSD License  

Highlights from
Matgraph

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

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

uminus

PURPOSE ^

uminus(g) --- operator form of complement: h = -g;

SYNOPSIS ^

function h = uminus(g)

DESCRIPTION ^

 uminus(g) --- operator form of complement: h = -g;
 WARNING: creates a new graph
 THIS FUNCTION IS STRONGLY DEPROCATED. I PLAN TO REMOVE IT FROM MATGRAPH.

CROSS-REFERENCE INFORMATION ^

This function calls:
  • complement graph complement
  • copy copy(g,h) --- overwrite g with a copy of h
  • graph graph: constructor for the graph class
This function is called by:

SOURCE CODE ^

0001 function h = uminus(g)
0002 % uminus(g) --- operator form of complement: h = -g;
0003 % WARNING: creates a new graph
0004 % THIS FUNCTION IS STRONGLY DEPROCATED. I PLAN TO REMOVE IT FROM MATGRAPH.
0005 
0006 h = graph;
0007 copy(h,g);
0008 complement(h);

Generated on Sat 30-Sep-2006 22:53:19 by m2html © 2003

Contact us at files@mathworks.com