#include <stdio.h>
#include "types.h"
+/* FIXME - globals.h is needed for Nop */
+#include "globals.h"
#include "gvplugin_layout.h"
LAYOUT_FDP,
LAYOUT_TWOPI,
LAYOUT_CIRCO,
+ LAYOUT_NOP1,
+ LAYOUT_NOP2,
} layout_type;
extern void neato_layout(graph_t * g);
extern void twopi_cleanup(graph_t * g);
extern void circo_cleanup(graph_t * g);
+static void nop1_layout(graph_t * g)
+{
+ Nop = 1;
+ neato_layout(g);
+}
+
+static void nop2_layout(graph_t * g)
+{
+ Nop = 2;
+ neato_layout(g);
+}
+
gvlayout_engine_t neatogen_engine = {
neato_layout,
neato_cleanup,
circo_cleanup,
};
+gvlayout_engine_t nop1gen_engine = {
+ nop1_layout,
+ neato_cleanup,
+};
+
+gvlayout_engine_t nop2gen_engine = {
+ nop2_layout,
+ neato_cleanup,
+};
+
gvlayout_features_t neatogen_features = {
0,
};
{LAYOUT_FDP, "fdp", 0, &fdpgen_engine, &neatogen_features},
{LAYOUT_TWOPI, "twopi", 0, &twopigen_engine, &neatogen_features},
{LAYOUT_CIRCO, "circo", 0, &circogen_engine, &neatogen_features},
+ {LAYOUT_NOP1, "nop", 0, &nop1gen_engine, &neatogen_features},
+ {LAYOUT_NOP1, "nop1", 0, &nop1gen_engine, &neatogen_features},
+ {LAYOUT_NOP1, "nop2", 0, &nop2gen_engine, &neatogen_features},
{0, NULL, 0, NULL, NULL}
};