finds rigid copies of a graph which is defined by user