i know how can represent python dictionary using uml. dictionary attribute of class called digraph. keys of type node, , values of type edge.
qualified associations useful modeling maps/dictionaries.
see uml-diagrams.org examples.
you can read official uml (2.5) specs (see page 215)
and particular problem can represented as:
however note nodes single outgoing edges (its one-to-one mapping); if wasn't intention mapping have node array of edges. (and changing 1
*
).