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:

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