input metagraph.mpi

u := 5mm;
v := 1.5mm;

beginfig(1)

declare_vertex(a)(2u, 4u);
declare_vertex(b)(4u, 4u);
declare_vertex(c)(5u, 2u);
declare_vertex(d)(4u, 0u);
declare_vertex(e)(2u, 0u);
declare_vertex(f)(1u, 2u);

draw_edge(a, b)();
draw_edge(b, c)();
draw_edge(c, d)();
draw_edge(d, e)();
draw_edge(e, f)();

draw_vertex(a)(graph_label(btex 1 etex));
draw_vertex(b)(graph_label(btex 2 etex));
draw_vertex(c)(graph_label(btex 3 etex));
draw_vertex(d)(graph_label(btex 4 etex));
draw_vertex(e)(graph_label(btex 5 etex));
draw_vertex(f)(graph_label(btex 6 etex));

pickup pencircle scaled 2pt;
drawdot (2u-2v, 0u-2v);
drawdot (4u+2v, 0u-2v);

pickup pencircle scaled 0.75pt;
drawarrow (2u-2v, 0u-2v)--(1u-3v, 2u) dashed evenly;
drawarrow (4u+2v, 0u-2v)--(5u+3v, 2u) dashed evenly;

endfig;

beginfig(2)

u := 4mm;

declare_vertex(a)(0u, 4u);
declare_vertex(b)(2u, 2u);
declare_vertex(c)(2u, 0u);
declare_vertex(d)(0u, -2u);
declare_vertex(e)(4u, 2u);
declare_vertex(f)(6u, 4u);
declare_vertex(g)(4u, 0u);
declare_vertex(h)(6u, -2u);

draw_edge(a, b)();
draw_edge(b, c)();
draw_edge(c, d)();
draw_edge(b, e)();
draw_edge(e, f)();
draw_edge(c, g)();
draw_edge(g, h)();


draw_vertex(a)(graph_label(btex 1 etex));
draw_vertex(b)(graph_label(btex 2 etex));
draw_vertex(c)(graph_label(btex 3 etex));
draw_vertex(d)(graph_label(btex 4 etex));
draw_vertex(e)(graph_label(btex 5 etex));
draw_vertex(f)(graph_label(btex 6 etex));
draw_vertex(g)(graph_label(btex 7 etex));
draw_vertex(h)(graph_label(btex 8 etex));

pickup pencircle scaled 2pt;
drawdot (0u+2v, 4u+2v);
drawdot (6u-2v, -2u-2v);

pickup pencircle scaled 0.75pt;
drawarrow (0u+2v, 4u+2v)--(2u, 2u+3v)--(4u, 2u+3v)--(6u-2v, 4u+2v) dashed evenly;
drawarrow (6u-2v, -2u-2v)--(4u, 0u-3v)--(2u, 0u-3v)--(0u+2v, -2u-2v) dashed evenly;


endfig;

end.
