Computer storage and retrieval of generic chemical structures in patents. 13. Reduced graph generation