Representation of Mechanical Assemblies and Specifications by Graphs