test_class.declarator: finder
test_class.modifier: private
test_class.original_string: private HanserRingFinder finder;
test_class.type: HanserRingFinder
test_class.var_name: finder
test_class.file: legacy/src/test/java/org/openscience/cdk/smsd/ring/HanserRingFinderTest.java
test_class.identifier: HanserRingFinderTest
test_case.body: @Test
      public void testFindRings() {
          IAtomContainer molecule = null;
          HanserRingFinder instance = new HanserRingFinder();
          Collection expResult = null;
          Collection result = instance.findRings(molecule);
          assertEquals(expResult, result);
      }
test_case.class_method_signature: HanserRingFinderTest.testFindRings()
test_case.full_signature: @Test public void testFindRings()
test_case.identifier: testFindRings
test_case.invocations: findRings assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFindRings()
focal_class.declarator: rings
focal_class.modifier: private
focal_class.original_string: private List<List<IAtom>> rings;
focal_class.type: List<List<IAtom>>
focal_class.var_name: rings
focal_class.file: legacy/src/main/java/org/openscience/cdk/smsd/ring/HanserRingFinder.java
focal_class.identifier: HanserRingFinder
focal_class.interfaces: implements RingFinder
focal_class.class_method_signature: HanserRingFinder.HanserRingFinder()
focal_class.full_signature: public  HanserRingFinder()
focal_class.identifier: HanserRingFinder
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  HanserRingFinder()
focal_class.class_method_signature: HanserRingFinder.findRings(IAtomContainer molecule)
focal_class.full_signature: @Override public Collection<List<IAtom>> findRings(IAtomContainer molecule)
focal_class.identifier: findRings
focal_class.modifiers: @Override public
focal_class.parameters: (IAtomContainer molecule)
focal_class.return: Collection<List<IAtom>>
focal_class.signature: Collection<List<IAtom>> findRings(IAtomContainer molecule)
focal_class.class_method_signature: HanserRingFinder.getRingSet(IAtomContainer molecule)
focal_class.full_signature: @Override public IRingSet getRingSet(IAtomContainer molecule)
focal_class.identifier: getRingSet
focal_class.modifiers: @Override public
focal_class.parameters: (IAtomContainer molecule)
focal_class.return: IRingSet
focal_class.signature: IRingSet getRingSet(IAtomContainer molecule)
focal_method.body: @Override
      public Collection<List<IAtom>> findRings(IAtomContainer molecule) {
          if (molecule == null) return null;
          rings.clear();
          PathGraph graph = new PathGraph(molecule);
  
          for (int i = 0; i < molecule.getAtomCount(); i++) {
              List<PathEdge> edges = graph.remove(molecule.getAtom(i));
  
              for (PathEdge edge : edges) {
                  List<IAtom> ring = edge.getAtoms();
                  rings.add(ring);
              }
          }
  
          return rings;
      }
focal_method.class_method_signature: HanserRingFinder.findRings(IAtomContainer molecule)
focal_method.full_signature: @Override public Collection<List<IAtom>> findRings(IAtomContainer molecule)
focal_method.identifier: findRings
focal_method.invocations: clear getAtomCount remove getAtom getAtoms add
focal_method.modifiers: @Override public
focal_method.parameters: (IAtomContainer molecule)
focal_method.return: Collection<List<IAtom>>
focal_method.signature: Collection<List<IAtom>> findRings(IAtomContainer molecule)