def _plot_graph(G, outfile=None, fmt='pdf'):

    if outfile is None:
        outfile = 'graph.'+fmt

    dotfile = os.path.splitext(outfile)[0]+'.dot'

    nx.write_dot(G, dotfile)

    os.system("dot -T%s -o %s %s" % (fmt, outfile, dotfile))

    if sys.platform == 'darwin':
        os.system('open %s' % outfile)
    else:
        webbrowser.get().open(outfile)

    os.remove(dotfile)
Query for an accounting object (VIEWPOINT_SIZE:<vp_id>, VISIBLE_TO).
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/devtools/dotgraph.py/_plot_graph--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/accounting.py/Accounting.QueryViewpointVisibleTo