20 if (stack->
data == NULL)
23 printf(
"Error allocating memory in initialize_Stack");
25 sprintf( log_Text,
"Error allocating memory in initialize_Stack\n");
36 return(stack->data[stack->nElements-1]);
42 return(stack->data[stack->nElements-2]);
89 printf(
"Position: %d. Edge id: %d with origin vertex %d.\n",
101 if (stack->
data != NULL)
int initialize_Stack(struct stack_T *stack, int size)
void print_Stack(struct stack_T *stack)
void push(struct stack_T *stack, struct Convex_T edge)
void finalize_Stack(struct stack_T *stack)
void update_Peak(struct stack_T *stack, int edge)
int get_Stack_nElements(struct stack_T *stack)
struct Convex_T peak(struct stack_T *stack)
struct Convex_T peak_Prev(struct stack_T *stack)
void reset_Stack(struct stack_T *stack)
void pop(struct stack_T *stack)