Skip to content

Commit

Permalink
chore: Update vendored sources to igraph/igraph@766238c
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Jul 1, 2024
1 parent db88e98 commit 339fc41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/vendor/cigraph/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixed

- `igraph_layout_drl()` and `igraph_layout_drl_3d()` would crash with an assertion failure when interrupted. This is now fixed.
- Removed broken interruption support from `igraph_community_spinglass_single()`.

## [0.10.13]

Expand Down
8 changes: 5 additions & 3 deletions src/vendor/cigraph/src/community/spinglass/pottsmodel_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include "pottsmodel_2.h"

#include "igraph_random.h"
#include "core/interruption.h"
// #include "core/interruption.h"

#include <cstring>
#include <cmath>
Expand Down Expand Up @@ -838,7 +838,8 @@ double PottsModel::FindCommunityFromStart(
//calculate the affinity changes of all nodes for adding every node in the to_do list to the community
//##############################

IGRAPH_ALLOW_INTERRUPTION(); /* This is not clean.... */
// TODO
// IGRAPH_ALLOW_INTERRUPTION(); /* This is not clean.... */

max_delta_aff = 0.0;
max_aff_node = nullptr;
Expand Down Expand Up @@ -956,7 +957,8 @@ double PottsModel::FindCommunityFromStart(
//add the node to to_do again
to_do.Push(max_aff_node);
}
IGRAPH_ALLOW_INTERRUPTION(); /* This is not clean.... */
// TODO
// IGRAPH_ALLOW_INTERRUPTION(); /* This is not clean.... */
}
//###################
//write the node in the community to a file
Expand Down
4 changes: 2 additions & 2 deletions src/vendor/igraph_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

__BEGIN_DECLS

#define IGRAPH_VERSION "0.10.13-9-g1be914d61"
#define IGRAPH_VERSION "0.10.13-10-g766238c85"
#define IGRAPH_VERSION_MAJOR 0
#define IGRAPH_VERSION_MINOR 10
#define IGRAPH_VERSION_PATCH 13
#define IGRAPH_VERSION_PRERELEASE "9-g1be914d61"
#define IGRAPH_VERSION_PRERELEASE "10-g766238c85"

IGRAPH_EXPORT void igraph_version(const char **version_string,
int *major,
Expand Down

0 comments on commit 339fc41

Please sign in to comment.