There does not appear to be a documented mechanism for that.
does not indicate any explicit connection matrix. It indicates that the nodes and edges vectors are read-only, and the description of what those objects contain does not show any connection information. There is a method to convert the information in to a connection matrix, but no method to change the connection matrix.
I do not have the toolbox, so I cannot fish around to see if there is anything else lying around.