17 #ifndef OSURS_RESERVE_H_
18 #define OSURS_RESERVE_H_
Network for reservation optimization.
void delete_connection(Connection *connection)
Delete a connection.
Definition: connection.c:132
Reservation * new_reservation(Connection *connection, int seats, char *id)
Create a new reservation.
Definition: reservation.c:20
Connection * select_connection(Connection *connection, int seats)
Selects the best connection.
Definition: connection.c:100
Connection * new_connection(const Node *orig, const Node *dest, int time)
Create connection between nodes.
Definition: connection.c:37
int check_connection(Connection *connection, int seats, int *trip_count)
Check if seats are available in connection.
Definition: connection.c:76
A connection.
Definition: types.h:142
A node.
Definition: types.h:38
A reservation.
Definition: types.h:163