DECLARATIONS ///.
CFile****************************************************************
FileName [ioWriteGml.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Command processing package.]
Synopsis [Procedures to write the graph structure of AIG in GML.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
- Id:
- ioWriteGml.c,v 1.00 2005/06/20 00:00:00 alanmi Exp
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Writes the graph structure of AIG in GML.]
Description [Useful for graph visualization using tools such as yEd: http://www.yworks.com/]
SideEffects []
SeeAlso []
Definition at line 46 of file ioWriteGml.c.
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_NtkForEachLatch(pNtk, pObj, i)
#define Abc_NtkForEachNode(pNtk, pNode, i)
#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 ///.
#define Abc_NtkForEachPi(pNtk, pPi, i)