Fix coding style for graph