code: def render(ont, query_ids, args):
      
      if args.slim.find('m') > -1:
          logging.info("SLIMMING")
          g = get_minimal_subgraph(g, query_ids)
      w = GraphRenderer.create(args.to)
      if args.showdefs:
          w.config.show_text_definition = True
      if args.render:
          if 'd' in args.render:
              logging.info("Showing text defs")
              w.config.show_text_definition = True
      if args.outfile is not None:
          w.outfile = args.outfile
      w.write(ont, query_ids=query_ids, container_predicates=args.container_properties)
docs: Writes or displays graph