A context menu could be associated with each element of the graph. For code blocks, one item in the context menu could be "Show code".