Graphviz 12.0.1~dev.20240715.2254
Loading...
Searching...
No Matches
subg.c File Reference

implementation of subgraphs More...

#include <cgraph/cghdr.h>
#include <stdbool.h>
#include <stddef.h>
Include dependency graph for subg.c:

Go to the source code of this file.

Functions

static Agraph_tagfindsubg_by_id (Agraph_t *g, IDTYPE id)
 
static Agraph_tlocalsubg (Agraph_t *g, IDTYPE id)
 
Agraph_tagidsubg (Agraph_t *g, IDTYPE id, int cflag)
 
Agraph_tagsubg (Agraph_t *g, char *name, int cflag)
 
Agraph_tagfstsubg (Agraph_t *g)
 
Agraph_tagnxtsubg (Agraph_t *subg)
 
Agraph_tagparent (Agraph_t *g)
 
int agdelsubg (Agraph_t *g, Agraph_t *subg)
 

Function Documentation

◆ agfindsubg_by_id()

static Agraph_t * agfindsubg_by_id ( Agraph_t g,
IDTYPE  id 
)
static

Definition at line 21 of file subg.c.

References Ag_subgraph_id_disc, agdtdisc(), AGID, dtsearch, Agraph_s::g_id, and id.

Referenced by agidsubg(), agsubg(), and localsubg().

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

◆ localsubg()

static Agraph_t * localsubg ( Agraph_t g,
IDTYPE  id 
)
static

Definition at line 30 of file subg.c.

References agalloc(), agfindsubg_by_id(), AGID, agopen1(), Agraph_s::clos, Agraph_s::desc, id, Agdesc_s::maingraph, Agraph_s::parent, and Agraph_s::root.

Referenced by agidsubg(), and agsubg().

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