Ask Your Question

Revision history [back]

Obtaining an unmodified latex output via Sage

I use the following in Sage to obtain latex output of a digraph:

G=DiGraph([(2, 1), (4, 1), (4, 0), (3, 4)])
display(G)
latex(G)

The picture of the digraph (via display) looks nice in Sage, but the latex code gives me bend edges.

Question: Is there a way to make Sage give me latex output that looks like the display in Sage? Or at least is it possible to give me output with straight edges instead of bend edges?

Obtaining an unmodified latex output via Sage

I use the following in Sage to obtain latex output of a digraph:

G=DiGraph([(2, 1), (4, 1), (4, 0), (3, 4)])
display(G)
latex(G)

The picture of the digraph (via display) looks nice in Sage, but the latex code gives me bend edges.

Question: Is there a way to make Sage give me latex output that looks like the display in Sage? Or at least is it possible to give me output with straight edges instead of bend edges?edges and make the head of the arrows bigger?