Graphviz 13.1.3~dev.20250831.0023
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 <render.h>
18#include <stddef.h>
19#include <util/list.h>
20
21typedef LIST(node_t *) nodelist_t;
22
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
type-generic dynamically expanding list
#define LIST(type)
Definition list.h:55
void reverseAppend(nodelist_t *, nodelist_t *)
Create l1 @ (rev l2) Destroys and frees l2.
Definition nodelist.c:72
void realignNodelist(nodelist_t *list, size_t np)
Make np new front of list, with current last hooked to current first.
Definition nodelist.c:36
void insertNodelist(nodelist_t *, Agnode_t *, Agnode_t *, int)
Definition nodelist.c:46
void appendNodelist(nodelist_t *, size_t, Agnode_t *n)
Add node after one.
Definition nodelist.c:19