Graphviz 16.1.3~dev.20261121.1645
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
32
39
47
52size_t node_set_size(const node_set_t *self);
53
58static inline bool node_set_is_empty(const node_set_t *self) {
59 assert(self != NULL);
60 return node_set_size(self) == 0;
61}
62
68void node_set_free(node_set_t **self);
abstract graph C library, Cgraph API
node NULL
Definition grammar.y:181
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:483
void node_set_free(node_set_t **self)
Definition node.c:551
size_t node_set_size(const node_set_t *self)
Definition node.c:546
static bool node_set_is_empty(const node_set_t *self)
Definition node_set.h:58
node_set_t * node_set_new(void)
Definition node.c:406
void node_set_add(node_set_t *self, Agsubnode_t *item)
Definition node.c:418
void node_set_remove(node_set_t *self, IDTYPE item)
Definition node.c:518
This is the node struct allocated per graph (or subgraph).
Definition cgraph.h:251
Definition utils.c:699