c++

gvLayout segfaulting?

I'm trying to use graphviz to plot the state of certain data structures in a C++ project. I'm trying to get a simple example running but some attribute seems to be unintialized. My demo code is:

#define WITH_CGRAPH

#include

using namespace std;

int main() {
GVC_t * gvc;
Agraph_t * G;
gvc = gvContext();
G = agopen("test",Agdirected,0);
Agnode_t * n = agnode(G,"root",1);
agsafeset(n,"shape","doublecircle","ellipse");
gvLayout(gvc,G,"dot");
gvRenderFilename(gvc,G,"eps","test.eps");
gvFreeLayout(gvc,G);
agclose(G);
gvFreeContext(gvc);
}

real time(online) graph generation

 Hi everybody,
I need to generate realtime graph in c++,is it possibe with graphviz? if so, how?
and if it is not possible to make online graph in graphviz what do you suggest that is abe of this?
thank you in advance

Recent comments

Syndicate content