Graphviz  2.41.20171026.1811
Functions | Variables
node.c File Reference
#include <cghdr.h>
Include dependency graph for node.c:

Go to the source code of this file.

Functions

Agnode_tagfindnode_by_id (Agraph_t *g, IDTYPE id)
 
Agnode_tagfindnode_by_name (Agraph_t *g, char *name)
 
Agnode_tagfstnode (Agraph_t *g)
 
Agnode_tagnxtnode (Agraph_t *g, Agnode_t *n)
 
Agnode_taglstnode (Agraph_t *g)
 
Agnode_tagprvnode (Agraph_t *g, Agnode_t *n)
 
Agnode_tagidnode (Agraph_t *g, IDTYPE id, int cflag)
 
Agnode_tagnode (Agraph_t *g, char *name, int cflag)
 
void agdelnodeimage (Agraph_t *g, Agnode_t *n, void *ignored)
 
int agdelnode (Agraph_t *g, Agnode_t *n)
 
int agrelabel_node (Agnode_t *n, char *newname)
 
Agnode_tagsubnode (Agraph_t *g, Agnode_t *n0, int cflag)
 
int agsubnodeidcmpf (Dict_t *d, void *arg0, void *arg1, Dtdisc_t *disc)
 
int agsubnodeseqcmpf (Dict_t *d, void *arg0, void *arg1, Dtdisc_t *disc)
 
void agnodesetfinger (Agraph_t *g, Agnode_t *n, void *ignored)
 
void agnoderenew (Agraph_t *g, Agnode_t *n, void *ignored)
 
int agnodebefore (Agnode_t *fst, Agnode_t *snd)
 

Variables

Dtdisc_t Ag_subnode_id_disc
 
Dtdisc_t Ag_subnode_seq_disc
 

Function Documentation

int agdelnode ( Agraph_t g,
Agnode_t n 
)
void agdelnodeimage ( Agraph_t g,
Agnode_t n,
void *  ignored 
)
Agnode_t* agfindnode_by_id ( Agraph_t g,
IDTYPE  id 
)
Agnode_t* agfindnode_by_name ( Agraph_t g,
char *  name 
)

Definition at line 28 of file node.c.

References agfindnode_by_id(), agmapnametoid(), AGNODE, FALSE, and NILnode.

Referenced by agrelabel_node().

Agnode_t* agfstnode ( Agraph_t g)

Definition at line 38 of file node.c.

References dtfirst, Agraph_s::n_seq, NILnode, and Agsubnode_s::node.

Referenced by agclean(), agclose(), agexpose(), agflatten(), aghide(), aginit(), agnedges(), allocate_ranks(), assign_random_edge_color(), attach_attrs_and_arrows(), attach_edge_colors(), attached_clustering(), build_skeleton(), cAdjust(), cccomps(), ccomps(), circleLayout(), circo_cleanup(), circo_layout(), circomps(), circuit_model(), circularLayout(), class1(), class2(), compoundEdges(), compute_bb(), convert_edge_labels_to_nodes(), countDummyNodes(), createBlocktree(), decompose(), dot_cleanup(), dot_compoundEdges(), dot_init_node_edge(), dot_sameports(), dot_scan_ranks(), Dot_SetClusterColor(), dumpstat(), emit_clusters(), emit_graph(), fdp_cleanup(), fdp_init_node_edge(), fdp_layout(), fdp_tLayout(), findCComp(), firstin(), firstnode(), firstout(), getSizes(), graphcmd(), gvToolTred(), Import_coord_clusters_from_dot(), Import_dot_splines(), init_nop(), init_UF_size(), initEdgeTypes(), interclexp(), isConnected(), main(), makeDotGraph(), makeMatrix(), mark_clusters(), mark_lowclusters(), neato_cleanup(), neato_set_aspect(), neato_translate(), node_induce(), normalize(), osage_cleanup(), osage_layout(), patchwork_cleanup(), pccomps(), processClusterEdges(), rank3(), scAdjust(), scan_graph_mode(), sfdp_cleanup(), shiftGraphs(), shortest_path(), SparseMatrix_import_dot(), spline_edges(), splineEdges(), twopi_cleanup(), twopi_layout(), undoClusterEdges(), and write_plain().

Agnode_t* agidnode ( Agraph_t g,
IDTYPE  id,
int  cflag 
)

Definition at line 119 of file node.c.

References agallocid(), agfindnode_by_id(), agnextseq(), AGNODE, agroot(), agsubnode(), NILnode, and TRUE.

Referenced by agcontains().

Agnode_t* aglstnode ( Agraph_t g)

Definition at line 53 of file node.c.

References dtlast, Agraph_s::n_seq, NILnode, and Agsubnode_s::node.

Referenced by graphcmd().

Agnode_t* agnode ( Agraph_t g,
char *  name,
int  cflag 
)
int agnodebefore ( Agnode_t fst,
Agnode_t snd 
)
void agnoderenew ( Agraph_t g,
Agnode_t n,
void *  ignored 
)

Definition at line 346 of file node.c.

References dtfinger, dtrenew(), Agraph_s::n_seq, and NOTUSED.

Referenced by agnodebefore().

void agnodesetfinger ( Agraph_t g,
Agnode_t n,
void *  ignored 
)

Definition at line 338 of file node.c.

References dtsearch, Agraph_s::n_seq, Agsubnode_s::node, and NOTUSED.

Referenced by agnodebefore().

Agnode_t* agnxtnode ( Agraph_t g,
Agnode_t n 
)
Agnode_t* agprvnode ( Agraph_t g,
Agnode_t n 
)

Definition at line 60 of file node.c.

References agsubrep(), dtprev, Agraph_s::n_seq, NILnode, and Agsubnode_s::node.

Referenced by agnodebefore(), and graphcmd().

int agrelabel_node ( Agnode_t n,
char *  newname 
)
Agnode_t* agsubnode ( Agraph_t g,
Agnode_t n0,
int  cflag 
)
int agsubnodeidcmpf ( Dict_t d,
void *  arg0,
void *  arg1,
Dtdisc_t disc 
)

Definition at line 274 of file node.c.

References AGID, and Agsubnode_s::node.

int agsubnodeseqcmpf ( Dict_t d,
void *  arg0,
void *  arg1,
Dtdisc_t disc 
)

Definition at line 286 of file node.c.

References AGSEQ, and Agsubnode_s::node.

Variable Documentation

Dtdisc_t Ag_subnode_id_disc
Initial value:
= {
0,
0,
offsetof(Agsubnode_t, id_link),
}
unsigned int(* Dthash_f)(Dt_t *, void *, Dtdisc_t *)
Definition: cdt.h:41
void *(* Dtmake_f)(Dt_t *, void *, Dtdisc_t *)
Definition: cdt.h:38
#define NIL(t)
Definition: dthdr.h:13
int agsubnodeidcmpf(Dict_t *d, void *arg0, void *arg1, Dtdisc_t *disc)
Definition: node.c:274
void * agdictobjmem(Dict_t *dict, void *p, size_t size, Dtdisc_t *disc)
Definition: utils.c:19
void(* Dtfree_f)(Dt_t *, void *, Dtdisc_t *)
Definition: cdt.h:39

Definition at line 314 of file node.c.

Referenced by agopen1().

Dtdisc_t Ag_subnode_seq_disc
Initial value:
= {
0,
0,
offsetof(Agsubnode_t, seq_link),
(Dtfree_f)free_subnode,
}
unsigned int(* Dthash_f)(Dt_t *, void *, Dtdisc_t *)
Definition: cdt.h:41
void *(* Dtmake_f)(Dt_t *, void *, Dtdisc_t *)
Definition: cdt.h:38
#define NIL(t)
Definition: dthdr.h:13
void * agdictobjmem(Dict_t *dict, void *p, size_t size, Dtdisc_t *disc)
Definition: utils.c:19
void(* Dtfree_f)(Dt_t *, void *, Dtdisc_t *)
Definition: cdt.h:39
int agsubnodeseqcmpf(Dict_t *d, void *arg0, void *arg1, Dtdisc_t *disc)
Definition: node.c:286

Definition at line 326 of file node.c.

Referenced by agopen1().