The Diagram Package has information on a diagram and on DiagramObject and DiagramLink, which are the instances of elements within a diagram.