Graphviz 16.1.1~dev.20260926.2046
Loading...
Searching...
No Matches
subg.c File Reference

implementation of subgraphs More...

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

Go to the source code of this file.

Functions

static Agraph_t * agfindsubg_by_id (Agraph_t *g, IDTYPE id)
 
static Agraph_t * localsubg (Agraph_t *g, IDTYPE id)
 
Agraph_t * agidsubg (Agraph_t *g, IDTYPE id)
 constructor
 
Agraph_t * agsubg (Agraph_t *g, char *name, int cflag)
 
Agraph_t * agfstsubg (Agraph_t *g)
 
Agraph_t * agnxtsubg (Agraph_t *subg)
 
Agraph_t * agparent (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 24 of file subg.c.

References Ag_subgraph_id_disc, agdtdisc(), dtsearch, and Agraph_s::g_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 agfindsubg_by_id(), AGID, agopen1(), Agraph_s::clos, Agraph_s::desc, gv_alloc(), id, Agdesc_s::maingraph, Agraph_s::parent, and Agraph_s::root.

Referenced by agsubg().

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