Code covered by the BSD License  

Highlights from
Matgraph

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

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

fast_set_matrix

PURPOSE ^

fast_set_matrix(g,A) --- overwrite the adjacency matrix of g with A

SYNOPSIS ^

function fast_set_matrix(g,A)

DESCRIPTION ^

 fast_set_matrix(g,A) --- overwrite the adjacency matrix of g with A
 WARNING: No checks are done on the matrix!!! See set_matrix for a safer
 method. See also check_matrix.

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:
  • complement graph complement
  • complete complete: build complete and complete multipartite graphs
  • mycielski mycielski(g,n) --- create n'th order Mycielski graph (n > 0)
  • random random --- overwrite g with a random graph
  • random_bipartite random_bipartite(g,n,m,p) --- create a random bipartite graph
  • set_matrix set_matrix(g,A) --- set g to be the graph specificed in the matrix A.

SOURCE CODE ^

0001 function fast_set_matrix(g,A)
0002 % fast_set_matrix(g,A) --- overwrite the adjacency matrix of g with A
0003 % WARNING: No checks are done on the matrix!!! See set_matrix for a safer
0004 % method. See also check_matrix.
0005 
0006 global GRAPH_MAGIC
0007 GRAPH_MAGIC.graphs{g.idx}.array = logical(A);

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

Contact us at files@mathworks.com