addVertex( source );
LOG.debug( "adding edge: {} -> {}", source, current );
Scope scope = addEdge( source, current );
scope.setName( current.getName() );
setOrdinal( source, current, scope );
}
}
for( Pipe previous : SubAssembly.unwind( current.getPrevious() ) )
{
makeGraph( previous, sources, sinks );
LOG.debug( "adding edge: {} -> ", previous, current );
if( getEdge( previous, current ) != null )
throw new ElementGraphException( previous, "cannot distinguish pipe branches, give pipe unique name: " + previous );
Scope scope = addEdge( previous, current );
scope.setName( previous.getName() ); // name scope after previous pipe
setOrdinal( previous, current, scope );
}
}