def latex_output_graph(self, node):
 graph = node['graph']
 parts = node['parts']
 graph_hash = get_graph_hash(node)
 name = ('inheritance%s' % graph_hash)
 dest_path = os.path.abspath(os.path.join(setup.app.builder.outdir, '_images'))
 if (not os.path.exists(dest_path)):
  os.makedirs(dest_path)
 pdf_path = os.path.abspath(os.path.join(dest_path, (name + '.pdf')))
 graph.run_dot(['-Tpdf', ('-o%s' % pdf_path)], name, parts, graph_options={'size': '"6.0,6.0"'})
 return ('\n\\includegraphics{%s}\n\n' % pdf_path)

def latex_output_graph ( self , node ) : graph = node [ 'graph' ] parts = node [ 'parts' ] graph_hash = get_graph_hash ( node ) name = ( 'inheritance%s' % graph_hash ) dest_path = os . path . abspath ( os . path . join ( setup . app . builder . outdir , '_images' ) ) if ( not os . path . exists ( dest_path ) ) : os . makedirs ( dest_path ) pdf_path = os . path . abspath ( os . path . join ( dest_path , ( name + '.pdf' ) ) ) graph . run_dot ( [ '-Tpdf' , ( '-o%s' % pdf_path ) ] , name , parts , graph_options = { 'size' : '"6.0,6.0"' } ) return ( '\n\\includegraphics{%s}\n\n' % pdf_path )
output the graph for latex .