SHARE
TWEET

Untitled

a guest Jun 12th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #ifndef GRAPHITRPOSTORD_H
  3. #define GRAPHITRPOSTORD_H
  4.  
  5. /* ************************************************************************** */
  6.  
  7. #include "../itr/itr.h"
  8.  
  9. #include "../stack/stack.h"
  10.  
  11. #include "graph.h"
  12.  
  13. /* ************************************************************************** */
  14.  
  15. typedef struct GraphPostOrderIterator
  16. {
  17.     ITRObject *vertex;
  18.     BSTObject *colore; // -1 Nero 0 Bianco 1 Grigio
  19.     StackObject *stackvisit; // Segna l'ordine di visita
  20.     int curr; // NOME DEL VERTICE CORRENTE
  21.     GraphObject *grafo;
  22.     ITRObject *curredge;
  23. } GraphPostOrderIterator;
  24.  
  25. /* ************************************************************************** */
  26.  
  27. /* ************************************************************************** */
  28. ITRType * ConstructGraphPostOrderIterator();
  29. void DestructGraphPostOrderIterator(ITRType *tipo);
  30. /* ************************************************************************** */
  31. GraphPostOrderIterator*itrPostrdgrpConstruct(void * struct1);
  32.  
  33. void  itrPostrdgrpDestruct(GraphPostOrderIterator *obj);
  34.  
  35. int  itrPostrdgrpTerminated(GraphPostOrderIterator *obj);
  36.  
  37. void *itrPostrdgrpElement(GraphPostOrderIterator *obj);
  38.  
  39. void  itrPostrdgrpSuccessor(GraphPostOrderIterator *obj);
  40. #endif
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top