Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust drivers: max_flow #2092

Merged
merged 1 commit into from
Aug 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions include/drivers/max_flow/edge_disjoint_paths_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
/* for size-t */
#ifdef __cplusplus
# include <cstddef>
using Edge_t = struct Edge_t;
using General_path_element_t = struct General_path_element_t;
#else
# include <stddef.h>
typedef struct Edge_t Edge_t;
typedef struct General_path_element_t General_path_element_t;
#endif

typedef struct Edge_t Edge_t;

#include "c_types/pgr_combination_t.h"
typedef struct General_path_element_t General_path_element_t;



#ifdef __cplusplus
Expand Down
8 changes: 6 additions & 2 deletions include/drivers/max_flow/max_flow_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,18 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
/* for size-t */
#ifdef __cplusplus
# include <cstddef>
using Edge_t = struct Edge_t;
using pgr_flow_t = struct pgr_flow_t;
#else
# include <stddef.h>
typedef struct Edge_t Edge_t;
typedef struct pgr_flow_t pgr_flow_t;
#endif

#include "c_types/pgr_combination_t.h"
typedef struct Edge_t Edge_t;

typedef struct pgr_flow_t pgr_flow_t;



#ifdef __cplusplus
extern "C" {
Expand Down
4 changes: 3 additions & 1 deletion include/drivers/max_flow/minCostMaxFlow_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
/* for size-t */
#ifdef __cplusplus
# include <cstddef>
using pgr_flow_t = struct pgr_flow_t;
#else
# include <stddef.h>
typedef struct pgr_flow_t pgr_flow_t;
#endif

#include "c_types/pgr_combination_t.h"
#include "c_types/pgr_costFlow_t.h"

typedef struct pgr_flow_t pgr_flow_t;


#ifdef __cplusplus
extern "C" {
Expand Down