weighted node - the edges to its children have weights, made AddNode a child of WeightedNode
add the flow graph class, introduce a InputNode with ConstantNode as its subclass