]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Give edges between same-kind tutorials a larger weight.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 15 Jan 2020 20:52:30 +0000 (13:52 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 17 Jan 2020 16:06:33 +0000 (09:06 -0700)
doc/doxygen/scripts/steps.pl

index 1c66735f1b2b205dcc89524de162fff42a035eb9..1f466e5c564a4ef8755455cec89115e642feca12 100644 (file)
@@ -168,10 +168,23 @@ foreach $step (@ARGV)
         # Determine the style of the arrow that connects
         # the two nodes. If the two nodes are of the same
         # kind, use the same color as the nodes as this makes
-        # reading the flow of the graph a bit easier.
+        # reading the flow of the graph a bit easier. Furthermore,
+        # set the edge weight to 5 (instead of the default of 1)
+        # to try and keep programs of the same kind together. The
+        # exception is the "basic" tutorial programs: these are
+        # going to be connected by edges of weight 100, ensuring
+        # that they are all essentially aligned vertically.
         if ($kind_map{$source} eq $kind_map{$destination})
         {
             $edge_attributes = "color=\"$colors{$kind_map{$source}}\",";
+            if ($kind_map{$source} eq "basic")
+            {
+                $edge_attributes .= "weight=100,";
+            }
+            else
+            {
+                $edge_attributes .= "weight=5,";
+            }
         }
 
         # If the destination is a code gallery program, used a dashed line

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.