Basic support for hierarchical diagrams