code: private boolean endOfBranch(final SetStack<KamEdge> edgeStack,
              KamEdge edge,
              int edgeCount) {
          if (edgeStack.contains(edge) && edgeCount == 1) {
              return true;
          }
  
          return false;
      }
docs: Determines whether the end of a branch was found.  This can indicate
  that a path should be captures up to the leaf node.
  
  @param edgeStack {@link Stack} of {@link KamEdge} that holds the edges
  on the current path
  @param edge {@link KamEdge}, the edge to evaluate
  @param edgeCount <tt>int</tt>, the number of adjacent edges to the
  last visited {@link KamNode}
  @return <tt>true</tt> if this edge marks the end of a branch,
  <tt>false</tt> otherwise if it does not