added render_graph method to the adapter