code: public static List<List<IAtom>> getAllPaths(IAtomContainer atomContainer, IAtom start, IAtom end) {
          List<List<IAtom>> allPaths = new ArrayList<List<IAtom>>();
          if (start.equals(end)) return allPaths;
          findPathBetween(allPaths, atomContainer, start, end, new ArrayList<IAtom>());
          return allPaths;
      }
docs: Get a list of all the paths between two atoms.
  
  If the two atoms are the same an empty list is returned. Note that this problem
  is NP-hard and so can take a long time for large graphs.
  
  @param atomContainer The molecule to consider
  @param start         The starting Atom of the path
  @param end           The ending Atom of the path
  @return A <code>List</code> containing all the paths between the specified atoms