com.salesforce.jgrapht.traverse.DepthFirstIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AptSpringProcessor Show documentation
Show all versions of AptSpringProcessor Show documentation
This project contains the apt processor that implements all the checks enumerated in @Verify. It is a self contained, and
shaded jar.
/*
* (C) Copyright 2003-2017, by Liviu Rau and Contributors.
*
* JGraphT : a free Java graph-theory library
*
* This program and the accompanying materials are dual-licensed under
* either
*
* (a) the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation, or (at your option) any
* later version.
*
* or (per the licensee's choosing)
*
* (b) the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation.
*/
package com.salesforce.jgrapht.traverse;
import java.util.*;
import com.salesforce.jgrapht.*;
import com.salesforce.jgrapht.util.*;
/**
* A depth-first iterator for a directed and an undirected graph. For this iterator to work
* correctly the graph must not be modified during iteration. Currently there are no means to ensure
* that, nor to fail-fast. The results of such modifications are undefined.
*
* @param the graph vertex type
* @param the graph edge type
*
* @author Liviu Rau
* @author Barak Naveh
* @since Jul 29, 2003
*/
public class DepthFirstIterator
extends CrossComponentIterator
{
/**
* Sentinel object. Unfortunately, we can't use null, because ArrayDeque won't accept those. And
* we don't want to rely on the caller to provide a sentinel object for us. So we have to play
* typecasting games.
*/
public static final Object SENTINEL = new Object();
/**
* @see #getStack
*/
private Deque
© 2015 - 2025 Weber Informatics LLC | Privacy Policy