How to set a default value for the edge attribute 'weight'

Hmmm, the input you provide does not have weight=9 applied to every edge, only about half.
For example "Log that line from var":e -> "For each line in var":e does not have a weight attribute.
I created two variants of your graph - one with a weight=9 global default and one with weight=9 applied to each edge. They produced (seemingly) identical results.
The Graphviz syntax & semantics are a bit “eclectic” (see Comma separated list of node IDs), could this be causing confusion?

p.s. If you are trying to vertically align your nodes, you might look at group (group | Graphviz), instead of weight