Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If there is only one edge it doesn't draw an arrow #3

Open
jimhefferon opened this issue Jun 21, 2017 · 0 comments
Open

If there is only one edge it doesn't draw an arrow #3

jimhefferon opened this issue Jun 21, 2017 · 0 comments

Comments

@jimhefferon
Copy link

If you run this it draws the edge but not the arrow. Uncomment the superfluous edge to get an arrow.

picture pic;
int picnum = 34;
unitsize(pic,1pt);

// define nodes
node q0=ncircle("$q_0$"); 
node q1=ncircle("$q_0$"); 

// calculate nodes position
real u=1.5cm;  // horizontal  
real v=1.0*u;  // vertical
hlayout(1*u, q0, q1);

// draw edges
draw(pic,
     //     (q0--q1).l("a"),
     (q0--q1).l("a")
     );

// draw nodes after edges
draw(pic, q0, q1);

shipout(format(OUTPUT_FN,picnum),pic,format="pdf");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant