Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
nodelist.h
Go to the documentation of this file.
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
14extern "C" {
15#endif
16
17#include <cgraph/list.h>
18#include <render.h>
19#include <stddef.h>
20
21 DEFINE_LIST(nodelist, node_t*)
22
23
24 extern void appendNodelist(nodelist_t*, size_t, Agnode_t *n);
25
27 extern void realignNodelist(nodelist_t *list, size_t np);
28
31 extern void insertNodelist(nodelist_t *, Agnode_t *, Agnode_t *, int);
32
34 extern void reverseAppend(nodelist_t *, nodelist_t *);
35
36#ifdef DEBUG
37 extern void printNodelist(nodelist_t * list);
38#endif
39
40#ifdef __cplusplus
41}
42#endif
#define DEFINE_LIST(name, type)
Definition list.h:26
void reverseAppend(nodelist_t *, nodelist_t *)
Create l1 @ (rev l2) Destroys and frees l2.
Definition nodelist.c:71
void realignNodelist(nodelist_t *list, size_t np)
Make np new front of list, with current last hooked to current first.
Definition nodelist.c:35
void insertNodelist(nodelist_t *, Agnode_t *, Agnode_t *, int)
Definition nodelist.c:45
void appendNodelist(nodelist_t *, size_t, Agnode_t *n)
Add node after one.
Definition nodelist.c:18