Interface: GvNode
Defined in: api/builder.ts:36
Opaque handle for a graph node.
See
lib/cgraph/cgraph.h:Agnode_s
Properties
name
ts
readonly name: string;Defined in: api/builder.ts:37
Methods
getAttr()
ts
getAttr(k: string): string | undefined;Defined in: api/builder.ts:46
Parameters
k
string
Returns
string | undefined
setAttr()
ts
setAttr(k: string, v: string): void;Defined in: api/builder.ts:38
Parameters
k
string
v
string
Returns
void
setHtmlAttr()
ts
setHtmlAttr(k: string, v: string): void;Defined in: api/builder.ts:45
Set an attribute to an HTML-string value (e.g. label to an HTML-table label). Equivalent to label=<...> in DOT text: the value is tagged as HTML so the layout engine measures it as markup, not as literal text.
Parameters
k
string
v
string
Returns
void
See
lib/cgraph/refstr.c:aghtmlstr