rings genration from molecules

hi,

is there any protocol to generate rings and ringsystems from molecules

Regards

Pavan