CAD model simplification using graph-based feature recognition