[CCode (cname = "valadoc_compat_gvc_graph_new")]
extern Gvc.Graph valadoc_gvc_graph_new (string name);
+[CCode (cname = "valadoc_compat_gvc_graph_create_edge")]
+extern Gvc.Edge valadoc_gvc_graph_create_edge (Gvc.Graph graph, Gvc.Node from, Gvc.Node to);
+
public class Valadoc.Charts.SimpleFactory : Charts.Factory {
protected virtual Gvc.Node configure_type (Gvc.Node node, Api.Node item) {
node.safe_set ("shape", "box", "");
}
public override Gvc.Edge add_children (Gvc.Graph graph, Gvc.Node parent, Gvc.Node child) {
- var edge = graph.create_edge (parent, child);
+ var edge = valadoc_gvc_graph_create_edge (graph, parent, child);
edge.safe_set ("dir", "back", "");
return edge;
}
Agraph_t*
valadoc_compat_gvc_graph_new (const char *name);
+Agedge_t*
+valadoc_compat_gvc_graph_create_edge (Agraph_t* graph, Agnode_t* from, Agnode_t* to);
+
void
valadoc_compat_gvc_init (void)
{
return agopen ((char*) name, AGDIGRAPH);
#endif
}
+
+Agedge_t*
+valadoc_compat_gvc_graph_create_edge (Agraph_t* graph, Agnode_t* from, Agnode_t* to)
+{
+#ifdef WITH_CGRAPH
+ return agedge (graph, from, to, NULL, TRUE);
+#else
+ return agedge (graph, from, to);
+#endif
+}