ResultContainer result = new ResultContainer();
boolean directPathsOnly = DIRECTLY_INDEPENDENT_OF_KEY_WORD.equals(_dependencyType);
boolean dependsOnly = DependencyDefinitionParser.DEPENDENT_ONLY_ON_KEY_WORD.equals(_dependencyType);
for (int i = 0; i < _startConditions.length; i++)
{
VertexCondition startCondition = _startConditions[i];
StringPattern startSet = _startSets[i];
if (dependsOnly)
{
Set<AtomicVertex> invalids = new HashSet<AtomicVertex>();
for (AtomicVertex vertex : graph)
{
if (startCondition.isFulfilled(vertex))
{
for (int j = 0, n = vertex.getNumberOfOutgoingArcs(); j < n; j++)
{
Vertex headVertex = vertex.getHeadVertex(j);
if (_finalCondition.isFulfilled(headVertex) == false
&& startCondition.isFulfilled(headVertex) == false)
{
invalids.add(vertex);
invalids.add((AtomicVertex) headVertex);
}
}