GraphEdit is an area capable of showing various GraphNodes. It manages connection events between them.
</brief_description>
<description>
GraphEdit manages the showing of GraphNodes it contains, as well as connections and disconnections between them. Signals are sent for each of these two events. Disconnection between GraphNode slots is disabled by default.
It is greatly advised to enable low-processor usage mode (see [member OS.low_processor_usage_mode]) when using GraphEdits.
</description>
<tutorials>
</tutorials>
<methods>
<methodname="add_valid_connection_type">
<returntype="void"/>
<argumentindex="0"name="from_type"type="int"/>
<argumentindex="1"name="to_type"type="int"/>
<description>
Makes possible the connection between two different slot types. The type is defined with the [method GraphNode.set_slot] method.
</description>
</method>
<methodname="add_valid_left_disconnect_type">
<returntype="void"/>
<argumentindex="0"name="type"type="int"/>
<description>
Makes possible to disconnect nodes when dragging from the slot at the left if it has the specified type.
</description>
</method>
<methodname="add_valid_right_disconnect_type">
<returntype="void"/>
<argumentindex="0"name="type"type="int"/>
<description>
Makes possible to disconnect nodes when dragging from the slot at the right if it has the specified type.
Returns an Array containing the list of connections. A connection consists in a structure of the form [code]{ from_port: 0, from: "GraphNode name 0", to_port: 1, to: "GraphNode name 1" }[/code].
</description>
</method>
<methodname="get_zoom_hbox">
<returntype="HBoxContainer"/>
<description>
Gets the [HBoxContainer] that contains the zooming and grid snap controls in the top left of the graph. You can use this method to reposition the toolbar or to add your own custom controls to it.
[b]Warning:[/b] This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their [member CanvasItem.visible] property.
Emitted to the GraphEdit when the connection between the [code]from_slot[/code] slot of the [code]from[/code] GraphNode and the [code]to_slot[/code] slot of the [code]to[/code] GraphNode is attempted to be created.
Emitted to the GraphEdit when the connection between [code]from_slot[/code] slot of [code]from[/code] GraphNode and [code]to_slot[/code] slot of [code]to[/code] GraphNode is attempted to be removed.
</description>
</signal>
<signalname="duplicate_nodes_request">
<description>
Emitted when a GraphNode is attempted to be duplicated in the GraphEdit.
</description>
</signal>
<signalname="node_selected">
<argumentindex="0"name="node"type="Node"/>
<description>
Emitted when a GraphNode is selected.
</description>
</signal>
<signalname="node_unselected">
<argumentindex="0"name="node"type="Node"/>
<description>
</description>
</signal>
<signalname="paste_nodes_request">
<description>
Emitted when the user presses [code]Ctrl + V[/code].
</description>
</signal>
<signalname="popup_request">
<argumentindex="0"name="position"type="Vector2"/>
<description>
Emitted when a popup is requested. Happens on right-clicking in the GraphEdit. [code]position[/code] is the position of the mouse pointer when the signal is sent.
</description>
</signal>
<signalname="scroll_offset_changed">
<argumentindex="0"name="ofs"type="Vector2"/>
<description>
Emitted when the scroll offset is changed by the user. It will not be emitted when changed in code.