Graphviz 13.0.0~dev.20241220.2304
|
generic manipulations with Agobj_t and derived objects graphs, nodes and edges More...
Go to the source code of this file.
Functions | |
int | agdelete (Agraph_t *g, void *obj) |
deletes object. Equivalent to agclose, agdelnode, and agdeledge for obj being a graph, node or edge, respectively. | |
int | agrename (Agobj_t *obj, char *newname) |
void | agmethod_init (Agraph_t *g, void *obj) |
void | aginitcb (Agraph_t *g, void *obj, Agcbstack_t *cbstack) |
void | agmethod_upd (Agraph_t *g, void *obj, Agsym_t *sym) |
void | agupdcb (Agraph_t *g, void *obj, Agsym_t *sym, Agcbstack_t *cbstack) |
void | agmethod_delete (Agraph_t *g, void *obj) |
void | agdelcb (Agraph_t *g, void *obj, Agcbstack_t *cbstack) |
Agraph_t * | agroot (void *obj) |
Agraph_t * | agraphof (void *obj) |
void | agpushdisc (Agraph_t *g, Agcbdisc_t *cbd, void *state) |
int | agpopdisc (Agraph_t *g, Agcbdisc_t *cbd) |
int | agcontains (Agraph_t *g, void *obj) |
returns non-zero if obj is a member of (sub)graph | |
int | agobjkind (void *arg) |
int agrename | ( | Agobj_t * | obj, |
char * | newname | ||
) |
rename an object
obj | Target to rename |
newname | Name to assign |
Definition at line 41 of file obj.c.
References agfreeid(), AGID, agidsubg(), AGINEDGE, agmapnametoid(), AGNODE, AGOUTEDGE, agparent(), AGRAPH, agraphof(), agrelabel_node(), agroot(), AGTYPE, FAILURE, SUCCESS, and UNREACHABLE.