edgelist.h 989 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*************************************************************************
  2. * Copyright (c) 2011 AT&T Intellectual Property
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors: Details at https://graphviz.org
  9. *************************************************************************/
  10. #pragma once
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #include <render.h>
  15. typedef struct edgelistitem {
  16. Dtlink_t link;
  17. Agedge_t *edge;
  18. } edgelistitem;
  19. typedef Dt_t edgelist;
  20. extern edgelist *init_edgelist(void);
  21. extern void add_edge(edgelist * list, Agedge_t * e);
  22. extern void remove_edge(edgelist * list, Agedge_t * e);
  23. extern void free_edgelist(edgelist * list);
  24. #ifdef DEBUG
  25. extern void print_edge(edgelist *);
  26. #endif
  27. #ifdef __cplusplus
  28. }
  29. #endif