Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
apply.c File Reference
#include <cgraph/cghdr.h>
#include <stdbool.h>
Include dependency graph for apply.c:

Go to the source code of this file.

Functions

static Agobj_tsubnode_search (Agraph_t *sub, Agobj_t *n)
 
static Agobj_tsubedge_search (Agraph_t *sub, Agobj_t *e)
 
static Agobj_tsubgraph_search (Agraph_t *sub, Agobj_t *g)
 
static void rec_apply (Agraph_t *g, Agobj_t *obj, agobjfn_t fn, void *arg, agobjsearchfn_t objsearch, bool preorder)
 
int agapply (Agraph_t *g, Agobj_t *obj, agobjfn_t fn, void *arg, int preorder)
 

Function Documentation

◆ agapply()

int agapply ( Agraph_t g,
Agobj_t obj,
agobjfn_t  fn,
void *  arg,
int  preorder 
)

Definition at line 60 of file apply.c.

References agerrorf(), AGINEDGE, AGNODE, AGOUTEDGE, AGRAPH, AGTYPE, FAILURE, rec_apply(), subedge_search(), subgraph_search(), subnode_search(), and SUCCESS.

Referenced by agclean(), agdeledge(), agdelnode(), agdelrec(), agnodebefore(), agrelabel_node(), eval(), init_all_attrs(), and setattr().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rec_apply()

static void rec_apply ( Agraph_t g,
Agobj_t obj,
agobjfn_t  fn,
void *  arg,
agobjsearchfn_t  objsearch,
bool  preorder 
)
static

Definition at line 45 of file apply.c.

References agfstsubg(), agnxtsubg(), rec_apply(), and sub.

Referenced by agapply(), and rec_apply().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ subedge_search()

static Agobj_t * subedge_search ( Agraph_t sub,
Agobj_t e 
)
static

Definition at line 28 of file apply.c.

References agraphof(), agsubedge(), and sub.

Referenced by agapply().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ subgraph_search()

static Agobj_t * subgraph_search ( Agraph_t sub,
Agobj_t g 
)
static

Definition at line 35 of file apply.c.

References sub.

Referenced by agapply().

Here is the caller graph for this function:

◆ subnode_search()

static Agobj_t * subnode_search ( Agraph_t sub,
Agobj_t n 
)
static

Definition at line 21 of file apply.c.

References agraphof(), agsubnode(), and sub.

Referenced by agapply().

Here is the call graph for this function:
Here is the caller graph for this function: