code: def show_graph(g, nodes, query_ids, args):
      
      if args.graph.find('m') > -1:
          logging.info("SLIMMING")
          g = get_minimal_subgraph(g, query_ids)
      w = GraphRenderer.create(args.to)
      if args.outfile is not None:
          w.outfile = args.outfile
      logging.info("Writing subg from "+str(g))
      w.write(g, query_ids=query_ids, container_predicates=args.container_properties)
docs: Writes graph