Number: 576
Title: Missing label with multiples call to agwrite
Submitter: Celine
Date: Mon Nov 22 16:56:30 2004
Subsys: Lib(a)graph
Version: 1.17.20041122
System: x86-Linux-Debian unstable
Severity: major
When constructing a graph, a first call to agwrite writes the correct graph. But if I add nodes later, a later call to agwrite renders a graph without label in further nodes.

File included output.txt is stdout.

#include <stdio.h>
#include <agraph.h>
int main (int argc, char** argv)
	Agraph_t *g;
	Agsym_t *symnlabel;
	g = agopen("Graph",Agundirected, 0);
	symnlabel = agattr(g,AGNODE,"label", "");

	char *tmp = " label";
	char *tmp2 = agstrdup_html(g, tmp);
	Agnode_t *n = agnode(g, "",TRUE);
	agwrite(g, stdout);

	tmp = " label";
	tmp2 = agstrdup_html(g, tmp);
	Agnode_t *n2 = agnode(g, "",TRUE);

	agwrite(g, stdout);
Output file: b576.txt
[erg] The use of HTML labels is irrelevant. The same effect occurs with ordinary strings.
Owner: *
Status: *