55 pFile = fopen( pFileName,
"w" );
58 fprintf( stdout,
"Io_WriteGml(): Cannot open the output file \"%s\".\n", pFileName );
62 fprintf( pFile,
"graph [\n" );
65 fprintf( pFile,
"\n" );
68 fprintf( pFile,
" node [ id %5d label \"%s\"\n", pObj->
Id,
Abc_ObjName(pObj) );
69 fprintf( pFile,
" graphics [ type \"triangle\" fill \"#00FFFF\" ]\n" );
70 fprintf( pFile,
" ]\n" );
73 fprintf( pFile,
"\n" );
76 fprintf( pFile,
" node [ id %5d label \"%s\"\n", pObj->
Id,
Abc_ObjName(pObj) );
77 fprintf( pFile,
" graphics [ type \"triangle\" fill \"#00FF00\" ]\n" );
78 fprintf( pFile,
" ]\n" );
81 fprintf( pFile,
"\n" );
84 fprintf( pFile,
" node [ id %5d label \"%s\"\n", pObj->
Id,
Abc_ObjName(pObj) );
85 fprintf( pFile,
" graphics [ type \"rectangle\" fill \"#FF0000\" ]\n" );
86 fprintf( pFile,
" ]\n" );
89 fprintf( pFile,
"\n" );
92 fprintf( pFile,
" node [ id %5d label \"%s\"\n", pObj->
Id,
Abc_ObjName(pObj) );
93 fprintf( pFile,
" graphics [ type \"ellipse\" fill \"#CCCCFF\" ]\n" );
94 fprintf( pFile,
" ]\n" );
98 fprintf( pFile,
"\n" );
103 fprintf( pFile,
" edge [ source %5d target %5d\n", pObj->
Id, pFanin->
Id );
104 fprintf( pFile,
" graphics [ type \"line\" arrow \"first\" ]\n" );
105 fprintf( pFile,
" ]\n" );
109 fprintf( pFile,
"]\n" );
110 fprintf( pFile,
"\n" );
static int Abc_NtkIsStrash(Abc_Ntk_t *pNtk)
static int Abc_NtkIsLogic(Abc_Ntk_t *pNtk)
#define ABC_NAMESPACE_IMPL_END
#define Abc_NtkForEachLatch(pNtk, pObj, i)
#define Abc_NtkForEachNode(pNtk, pNode, i)
#define ABC_NAMESPACE_IMPL_START
#define Abc_ObjForEachFanin(pObj, pFanin, i)
ABC_DLL char * Abc_ObjName(Abc_Obj_t *pNode)
DECLARATIONS ///.
#define Abc_NtkForEachPo(pNtk, pPo, i)
#define Abc_NtkForEachObj(pNtk, pObj, i)
ITERATORS ///.
ABC_NAMESPACE_IMPL_START void Io_WriteGml(Abc_Ntk_t *pNtk, char *pFileName)
DECLARATIONS ///.
#define Abc_NtkForEachPi(pNtk, pPi, i)