Use Node Connections
Click a node to see what it is wired to: the canvas's GetNodeConnections lists its incoming and outgoing connections, GetHandleConnections narrows them to one handle, and BlowGraphUtils names its neighbours. The panel follows the graph as you connect and delete.
Press Tab to move between the nodes and edges of the diagram.
Press Enter or Space to select it, Shift with Enter to add it to the selection, the arrow keys to move the selected nodes, Delete to remove them and Escape to clear the selection. Press C to start a connection from it.
Press Enter or Space to select it, Delete to remove it and Escape to clear the selection. Press C to move its end to another node.
bit BlowTry it
- Click a node: the panel under the canvas lists its incoming and outgoing connections, how many edges each of its handles has, and its neighbours.
- Click Split or Merge: they have two named handles each, so the per-handle counts tell left from right and a from b, and each connection names its handle after a dot.
- Drag from a handle to another node to add a connection, or select an edge and press Delete: the panel updates at once.
- Delete the node you clicked (select it, then Delete or Backspace) and the panel empties rather than describing a node that is gone.
How it works
GetNodeConnections(nodeId, type, handleId)on the canvas returns theBlowConnections attached to a node - all of them, or only those where it is theTargetor theSource, or only those at one handle id. It is React Flow'sgetNodeConnections.GetHandleConnections(nodeId, type, handleId)is the same for one handle, React Flow'sgetHandleConnections. A nullhandleIddoes not filter by handle, which for a node with one unnamed handle of each type - 2 and 3 here - is the same thing.- Both are also static on
BlowGraphUtils, taking the edge list, for code with no canvas at hand; the canvas versions read its currentEdges. BlowGraphUtils.GetIncomersandGetOutgoersreturn the neighbouring nodes, andGetConnectedEdgesthe edges touching any of the given nodes.- Split and Merge are built-in
inputandoutputnodes that declarePorts; a built-in node draws one handle per declared port, spread along its side, so they get named handles without a template. OnNodeClickpicks the node; no-opNodesChangedandEdgesChangedhandlers re-render the page after every edit, so the panel stays current.