Skip to content

Commit

Permalink
vendor: Update vendored sources to igraph/igraph@6c57e8c
Browse files Browse the repository at this point in the history
refactor: minor cleanup in maximal cliques
  • Loading branch information
krlmlr committed Jan 6, 2025
1 parent 7b4a88b commit a1f5b6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions src/vendor/cigraph/src/cliques/maximal_cliques_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@
} while (0)
#define CLEANUP
#define FOR_LOOP_OVER_VERTICES \
nn= subset ? igraph_vector_int_size(subset) : no_of_nodes; \
nn = subset ? igraph_vector_int_size(subset) : no_of_nodes; \
for (ii=0; ii<nn; ii++)
#define FOR_LOOP_OVER_VERTICES_PREPARE do { \
i= subset ? VECTOR(*subset)[ii] : ii; \
i = subset ? VECTOR(*subset)[ii] : ii; \
} while (0)
#endif

Expand Down Expand Up @@ -205,19 +205,20 @@ igraph_error_t FUNCTION(igraph_maximal_cliques, SUFFIX)(

/* Implementation details. TODO */

const igraph_integer_t no_of_nodes = igraph_vcount(graph);
igraph_vector_int_t PX, R, H, pos, nextv;
igraph_vector_int_t coreness;
igraph_vector_int_t order;
igraph_vector_int_t rank; /* TODO: this is not needed */
igraph_integer_t i, ii, nn, no_of_nodes = igraph_vcount(graph);
igraph_integer_t i, ii, nn;
igraph_adjlist_t adjlist, fulladjlist;
igraph_real_t pgreset = round(no_of_nodes / 100.0), pg = pgreset, pgc = 0;
igraph_error_t err;
IGRAPH_UNUSED(nn);

IGRAPH_UNUSED(nn); /* not used by all implementations */

if (igraph_is_directed(graph)) {
IGRAPH_WARNING("Edge directions are ignored for maximal clique "
"calculation");
IGRAPH_WARNING("Edge directions are ignored for maximal clique calculations.");
}

IGRAPH_VECTOR_INT_INIT_FINALLY(&order, no_of_nodes);
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.15-24-gd6348668b"
#define IGRAPH_VERSION "0.10.15-25-g6c57e8c95"
#define IGRAPH_VERSION_MAJOR 0
#define IGRAPH_VERSION_MINOR 10
#define IGRAPH_VERSION_PATCH 15
#define IGRAPH_VERSION_PRERELEASE "24-gd6348668b"
#define IGRAPH_VERSION_PRERELEASE "25-g6c57e8c95"

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

0 comments on commit a1f5b6a

Please sign in to comment.