Adaptive graph formulation for 3D shape representation