diff options
author | pants <jaron@kent-dobias.com> | 2016-11-21 18:53:58 -0500 |
---|---|---|
committer | pants <jaron@kent-dobias.com> | 2016-11-21 18:53:58 -0500 |
commit | ae8014ad662e485f54ea578be67daa477b3936f0 (patch) | |
tree | ec26cf51262d20b30ce0135ff899307891e07dbf /src/gen_laplacian.c | |
parent | 4407982c990594a90db9184e3de8fba394ee096b (diff) | |
download | fuse_networks-ae8014ad662e485f54ea578be67daa477b3936f0.tar.gz fuse_networks-ae8014ad662e485f54ea578be67daa477b3936f0.tar.bz2 fuse_networks-ae8014ad662e485f54ea578be67daa477b3936f0.zip |
added support for controlling disorder by random initial bond breaking
Diffstat (limited to 'src/gen_laplacian.c')
-rw-r--r-- | src/gen_laplacian.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen_laplacian.c b/src/gen_laplacian.c index 73416e4..42134f0 100644 --- a/src/gen_laplacian.c +++ b/src/gen_laplacian.c @@ -208,8 +208,8 @@ cholmod_sparse *gen_laplacian(const net_t *instance, cholmod_common *c, for (uint_t i = 0; i < num_gverts; i++) { - if (acoo[i] == 0) - acoo[i] = 1; + if (instance->marks[i] != instance->marks[network->nv]) + acoo[i]++; } assert(CHOL_F(check_triplet)(temp_m, c)); |