Permalink
Browse files

Some minor modification to the code to make it a little more readable

  • Loading branch information...
1 parent 1324985 commit a23d6899a297b1134bd4a975e3ba522da03156cf @rajarshi rajarshi committed Mar 30, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/main/org/openscience/cdk/isomorphism/UniversalIsomorphismTester.java
@@ -841,10 +841,11 @@ private static void arcConstructor(RGraph gr, IAtomContainer ac1, IAtomContainer
for (int j = i + 1; j < gr.getGraph().size(); j++) {
RNode y = gr.getGraph().get(j);
- a1 = ac1.getBond(gr.getGraph().get(i).getRMap().getId1());
- a2 = ac2.getBond(gr.getGraph().get(i).getRMap().getId2());
- b1 = ac1.getBond(gr.getGraph().get(j).getRMap().getId1());
- b2 = ac2.getBond(gr.getGraph().get(j).getRMap().getId2());
+ a1 = ac1.getBond(x.getRMap().getId1());
+ a2 = ac2.getBond(x.getRMap().getId2());
+
+ b1 = ac1.getBond(y.getRMap().getId1());
+ b2 = ac2.getBond(y.getRMap().getId2());
if (a2 instanceof IQueryBond) {
if (a1.equals(b1) || a2.equals(b2) ||

0 comments on commit a23d689

Please sign in to comment.