Debian Codegraph @

lib/circogen/edgelist.h

raw
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
11 #pragma once
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #include <render.h>
18
19 typedef struct edgelistitem {
20 Dtlink_t link;
21 Agedge_t *edge;
22 } edgelistitem;
23
24 typedef Dt_t edgelist;
25
26 extern edgelist *init_edgelist(void);
27 extern void add_edge(edgelist * list, Agedge_t * e);
28 extern void remove_edge(edgelist * list, Agedge_t * e);
29 extern void free_edgelist(edgelist * list);
30 #ifdef DEBUG
31 extern void print_edge(edgelist *);
32 #endif
33
34 #ifdef __cplusplus
35 }
36 #endif