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.
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);