gvLayout throwing a segmentation fault

Hi, I am getting a segmentation fault after running this small piece of code. Hope someone can help me. Unfortunately, I did not find any debugging symbols to see where gvLayout was failing:
Agraph_t * graph = agread(in_file, NULL);
GVC_t * gvc;
gvc = gvContext();
gvLayout(gvc, graph, "neato");

I have attached the file from which I read the graph. Thanks in advance

AttachmentSize
solution.txt2.96 KB

Call gvContext() before you

Call gvContext() before you call agread().

Recent comments