Permalink
Browse files

Container may be null (allowed) use the default length limit (|V|) fr…

…om the graph instead.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information...
1 parent 2d44f0a commit 07a41b289ee2a1ff48a31cea6d9e70e0c4c8568b @johnmay johnmay committed with egonw Feb 10, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 base/core/src/main/java/org/openscience/cdk/graph/ShortestPaths.java
@@ -140,7 +140,7 @@ public ShortestPaths(IAtomContainer container, IAtom start) {
* @param ordering vertex ordering for preceding path (null = don't use)
*/
ShortestPaths(int[][] adjacent, IAtomContainer container, int start, int[] ordering) {
- this(adjacent, container, start, container.getAtomCount(), ordering);
+ this(adjacent, container, start, adjacent.length, ordering);
}
/**

0 comments on commit 07a41b2

Please sign in to comment.