Graphviz 13.0.0~dev.20241220.2304
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
node NULL
Definition grammar.y:163
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:489
void node_set_free(node_set_t **self)
Definition node.c:557
size_t node_set_size(const node_set_t *self)
Definition node.c:552
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:413
void node_set_add(node_set_t *self, Agsubnode_t *item)
Definition node.c:425
void node_set_remove(node_set_t *self, IDTYPE item)
Definition node.c:524
This is the node struct allocated per graph (or subgraph).
Definition cgraph.h:251
Definition utils.c:747