Skip to content

Commit

Permalink
vendor: Update vendored sources to igraph/igraph@4b208d8
Browse files Browse the repository at this point in the history
fix: mark some optional weight parameters as OPTIONAL in functions.yaml
  • Loading branch information
krlmlr committed Jan 5, 2025
1 parent d9303d4 commit 8efc2a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/rinterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -2381,7 +2381,7 @@ SEXP R_igraph_get_all_shortest_paths_dijkstra(SEXP graph, SEXP from, SEXP to, SE
if (!Rf_isNull(weights)) { R_SEXP_to_vector(weights, &c_weights); }
c_mode = (igraph_neimode_t) Rf_asInteger(mode);
/* Call igraph */
IGRAPH_R_CHECK(igraph_get_all_shortest_paths_dijkstra(&c_graph, &c_vertices, &c_edges, &c_nrgeo, c_from, c_to, (Rf_isNull(weights) ? 0 : &c_weights), c_mode));
IGRAPH_R_CHECK(igraph_get_all_shortest_paths_dijkstra(&c_graph, &c_vertices, &c_edges, &c_nrgeo, c_from, c_to, (Rf_isNull(weights) ? 0 : (Rf_isNull(weights) ? 0 : &c_weights)), c_mode));

/* Convert output */
PROTECT(r_result=NEW_LIST(3));
Expand Down
10 changes: 5 additions & 5 deletions src/vendor/cigraph/interfaces/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,13 @@ igraph_get_all_shortest_paths:
igraph_distances_dijkstra:
PARAMS: |-
GRAPH graph, OUT MATRIX res, VERTEX_SELECTOR from=ALL,
VERTEX_SELECTOR to=ALL, EDGEWEIGHTS weights, NEIMODE mode=OUT
VERTEX_SELECTOR to=ALL, OPTIONAL EDGEWEIGHTS weights, NEIMODE mode=OUT
DEPS: from ON graph, to ON graph, weights ON graph

igraph_distances_dijkstra_cutoff:
PARAMS: |-
GRAPH graph, OUT MATRIX res, VERTEX_SELECTOR from=ALL,
VERTEX_SELECTOR to=ALL, EDGEWEIGHTS weights, NEIMODE mode=OUT, REAL cutoff=-1
VERTEX_SELECTOR to=ALL, OPTIONAL EDGEWEIGHTS weights, NEIMODE mode=OUT, REAL cutoff=-1
DEPS: from ON graph, to ON graph, weights ON graph

igraph_get_shortest_paths_dijkstra:
Expand Down Expand Up @@ -557,21 +557,21 @@ igraph_get_all_shortest_paths_dijkstra:
PARAMS: |-
GRAPH graph, OPTIONAL OUT VERTEXSET_LIST vertices,
OPTIONAL OUT EDGESET_LIST edges, OPTIONAL OUT VECTOR_INT nrgeo,
VERTEX from, VERTEX_SELECTOR to=ALL, EDGEWEIGHTS weights,
VERTEX from, VERTEX_SELECTOR to=ALL, OPTIONAL EDGEWEIGHTS weights,
NEIMODE mode=OUT
DEPS: |-
weights ON graph, from ON graph, to ON graph, vertices ON graph, edges ON graph
igraph_distances_bellman_ford:
PARAMS: |-
GRAPH graph, OUT MATRIX res, VERTEX_SELECTOR from=ALL,
VERTEX_SELECTOR to=ALL, EDGEWEIGHTS weights, NEIMODE mode=OUT
VERTEX_SELECTOR to=ALL, OPTIONAL EDGEWEIGHTS weights, NEIMODE mode=OUT
DEPS: from ON graph, to ON graph, weights ON graph

igraph_distances_johnson:
PARAMS: |-
GRAPH graph, OUT MATRIX res, VERTEX_SELECTOR from=ALL,
VERTEX_SELECTOR to=ALL, EDGEWEIGHTS weights
VERTEX_SELECTOR to=ALL, OPTIONAL EDGEWEIGHTS weights
DEPS: from ON graph, to ON graph, weights ON graph

igraph_distances_floyd_warshall:
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-146-gd0616a433"
#define IGRAPH_VERSION "0.10.13-147-g4b208d877"
#define IGRAPH_VERSION_MAJOR 0
#define IGRAPH_VERSION_MINOR 10
#define IGRAPH_VERSION_PATCH 13
#define IGRAPH_VERSION_PRERELEASE "146-gd0616a433"
#define IGRAPH_VERSION_PRERELEASE "147-g4b208d877"

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

0 comments on commit 8efc2a5

Please sign in to comment.