abc/src/base/abc/abcDfs.c
/**Function*************************************************************

  Synopsis    [Returns the DFS ordered array of logic nodes.]

  Description [Collects only the internal nodes, leaving out CIs and CO.
  However it marks with the current TravId both CIs and COs.]
               
  SideEffects []

  SeeAlso     []

***********************************************************************/
Function
Synopsis    [Returns the DFS ordered array of logic nodes.]

Description [Collects only the internal nodes, leaving out CIs and CO.
However it marks with the current TravId both CIs and COs.]




Function Synopsis [ Returns the DFS ordered array of logic nodes . ] Description [ Collects only the internal nodes leaving out CIs and CO . However it marks with the current TravId both CIs and COs . ]
Vec_Ptr_t * Abc_NtkDfs2( Abc_Ntk_t * pNtk )
{
    Vec_Ptr_t * vNodes = Vec_PtrAlloc( 100 );
    Abc_Obj_t * pObj;  int i;
    Abc_NtkIncrementTravId( pNtk );
    Abc_NtkForEachCo( pNtk, pObj, i )
    {
        Abc_NodeSetTravIdCurrent( pObj );
        Abc_NtkDfs_rec( Abc_ObjFanin0Ntk(Abc_ObjFanin0(pObj)), vNodes );
    }
    return vNodes;
}
Vec_Ptr_t * Abc_NtkDfs2 ( Abc_Ntk_t * pNtk ) { Vec_Ptr_t * vNodes = Vec_PtrAlloc ( 100 ) ; Abc_Obj_t * pObj ; int i ; Abc_NtkIncrementTravId ( pNtk ) ; Abc_NtkForEachCo ( pNtk , pObj , i ) { Abc_NodeSetTravIdCurrent ( pObj ) ; Abc_NtkDfs_rec ( Abc_ObjFanin0Ntk ( Abc_ObjFanin0 ( pObj ) ) , vNodes ) ; } return vNodes ; }
Function
Synopsis    [Returns the DFS ordered array of logic nodes.]
Function Synopsis [ Returns the DFS ordered array of logic nodes . ]