Graphviz 12.0.1~dev.20240715.2254
Loading...
Searching...
No Matches
node_set.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <assert.h>
7#include <cgraph/cgraph.h>
8#include <stdbool.h>
9#include <stddef.h>
10
13
20
29
36
44
49size_t node_set_size(const node_set_t *self);
50
55static inline bool node_set_is_empty(const node_set_t *self) {
56 assert(self != NULL);
57 return node_set_size(self) == 0;
58}
59
65void node_set_free(node_set_t **self);
abstract graph C library, Cgraph API
disc key
Definition exparse.y:214
node NULL
Definition grammar.y:149
uint64_t IDTYPE
unique per main graph ID
Definition cgraph.h:73
Agsubnode_t * node_set_find(node_set_t *self, IDTYPE key)
Definition node.c:475
void node_set_free(node_set_t **self)
Definition node.c:545
size_t node_set_size(const node_set_t *self)
Definition node.c:540
static bool node_set_is_empty(const node_set_t *self)
Definition node_set.h:55
node_set_t * node_set_new(void)
Definition node.c:391
void node_set_add(node_set_t *self, Agsubnode_t *item)
Definition node.c:412
void node_set_remove(node_set_t *self, IDTYPE item)
Definition node.c:507
This is the node struct allocated per graph (or subgraph).
Definition cgraph.h:251
Definition utils.c:748