:mod:`langchain_core.runnables.graph`.Graph ================================================== .. currentmodule:: langchain_core.runnables.graph .. autoclass:: Graph .. rubric:: Attributes .. autosummary:: ~Graph.nodes ~Graph.edges .. rubric:: Methods .. autosummary:: ~Graph.__init__ ~Graph.add_edge ~Graph.add_node ~Graph.draw_ascii ~Graph.extend ~Graph.first_node ~Graph.last_node ~Graph.next_id ~Graph.print_ascii ~Graph.remove_node ~Graph.trim_first_node ~Graph.trim_last_node .. automethod:: Graph.__init__ .. automethod:: Graph.add_edge .. automethod:: Graph.add_node .. automethod:: Graph.draw_ascii .. automethod:: Graph.extend .. automethod:: Graph.first_node .. automethod:: Graph.last_node .. automethod:: Graph.next_id .. automethod:: Graph.print_ascii .. automethod:: Graph.remove_node .. automethod:: Graph.trim_first_node .. automethod:: Graph.trim_last_node .. example_links:: Graph