Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/base/io/ioWriteHMetis.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,24 @@ void Io_WriteHMetis( Abc_Ntk_t *pNtk, char *pFileName, int fSkipPo, int fWeightE
{
Vec_Int_t *vHyperEdgeEach = Vec_IntAlloc( 20 );
// push the node itself, which is a source node
Vec_IntPush( vHyperEdgeEach, Abc_ObjId( pObj ) );
// make const node has the id of the maxNodeNum, this is due to the design of 1-index based kahypar
if(Abc_AigNodeIsConst( pObj ))
{
Vec_IntPush( vHyperEdgeEach, Abc_NtkObjNum( pNtk ) );
}
else
{
Vec_IntPush( vHyperEdgeEach, Abc_ObjId( pObj ) );
}
// iterate through all the fanouts(sink) of the node
if ( !Abc_ObjIsCo( pObj ) )
{
Abc_ObjForEachFanout( pObj, pFanout, j )
{
Vec_IntPush( vHyperEdgeEach, Abc_ObjId( pFanout ) );
}
} else
}
else
{
if ( fSkipPo )
{
Expand Down
Loading