https://la.mathworks.com/help/matlab/ref/graph.addedge.html
addedge - Add new edge to graph - MATLAB
This MATLAB function adds an edge to graph G between nodes s and t.
add newedgegraphmatlab
https://afni.nimh.nih.gov/pub/dist/doc/program_help/@AddEdge.html
AFNI program: @AddEdge
afniprogram