From 1097088596fba8f7d0bf588fd5da0d66d9e06617 Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Sat, 7 Sep 2013 21:09:04 -0400 Subject: [PATCH] Update arrows page with new calculations; make arrows.html depend on gif files it contains --- doc/info/arrows.html | 15 +++++++++------ doc/infosrc/Makefile.old | 2 +- doc/infosrc/arrows.2 | 15 +++++++++------ 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/doc/info/arrows.html b/doc/info/arrows.html index 80028d0c5..361d49afd 100644 --- a/doc/info/arrows.html +++ b/doc/info/arrows.html @@ -149,6 +149,7 @@ The following table indicates which modifiers are allowed with which shapes. Modifier box crow + curve diamond dot inv @@ -157,16 +158,18 @@ The following table indicates which modifiers are allowed with which shapes. tee vee -'l'/'r'XXX X XXX -'o' X XXX X   +'l'/'r'XXXX X XXX +'o' X  XXX X  

-This yields 36 different arrow shapes. The optional second, third, fourth shapes -can independently be any of the 36, but since nonenone -is redundant, there are 35**4 + 35**3 + 35**2 + 35 + 1 = 1,544,761 different combinations. +This yields 39 different arrow shapes. The optional second, third, fourth shapes +can independently be any of the 39, except the last cannot be none as +this would create a redundant shape. +Thus, there are 38 · 393 + 38 · 392 + 38 · 39 + 39 = 2,313,441 different combinations. +

-The following display contains the 36 combinations possible with a single +The following display contains the 39 combinations possible with a single arrow shape. The node attached to the arrow is not drawn but would appear on the right side of the edge.

diff --git a/doc/infosrc/Makefile.old b/doc/infosrc/Makefile.old index d2b1b8dbc..8fda4f31e 100644 --- a/doc/infosrc/Makefile.old +++ b/doc/infosrc/Makefile.old @@ -166,7 +166,7 @@ lang.html : grammar lang.1 lang.2 mklang cat lang.2 >> lang.html rm gramtmp -arrows.html : arrow_grammar arrows.1 arrows.2 mkarrowtbl.sh mklang +arrows.html : arrow_grammar arrows.1 arrows.2 mkarrowtbl.sh mklang $(AGIF) $(A2GIF) ./mklang arrow_grammar gramtmp cat arrows.1 > arrows.html cat gramtmp >> arrows.html diff --git a/doc/infosrc/arrows.2 b/doc/infosrc/arrows.2 index a33317f8d..cd17351b5 100644 --- a/doc/infosrc/arrows.2 +++ b/doc/infosrc/arrows.2 @@ -55,6 +55,7 @@ The following table indicates which modifiers are allowed with which shapes. Modifier box crow + curve diamond dot inv @@ -63,16 +64,18 @@ The following table indicates which modifiers are allowed with which shapes. tee vee -'l'/'r'XXX X XXX -'o' X XXX X   +'l'/'r'XXXX X XXX +'o' X  XXX X  

-This yields 36 different arrow shapes. The optional second, third, fourth shapes -can independently be any of the 36, but since nonenone -is redundant, there are 35**4 + 35**3 + 35**2 + 35 + 1 = 1,544,761 different combinations. +This yields 39 different arrow shapes. The optional second, third, fourth shapes +can independently be any of the 39, except the last cannot be none as +this would create a redundant shape. +Thus, there are 38 · 393 + 38 · 392 + 38 · 39 + 39 = 2,313,441 different combinations. +

-The following display contains the 36 combinations possible with a single +The following display contains the 39 combinations possible with a single arrow shape. The node attached to the arrow is not drawn but would appear on the right side of the edge.

-- 2.40.0