nw:save-matrix
nw:save-matrix file-name
Saves the current network, as defined by nw:set-context
, to file-name, as a text file, in the form of a simple connection matrix.
Here is, for example, a undirected ring network with four nodes:
0.00 1.00 0.00 1.00
1.00 0.00 1.00 0.00
0.00 1.00 0.00 1.00
1.00 0.00 1.00 0.00
And here is the directed version:
0.00 1.00 0.00 0.00
0.00 0.00 1.00 0.00
0.00 0.00 0.00 1.00
1.00 0.00 0.00 0.00
At the moment, nw:save-matrix
does not support link weights. Every link is represented as a “1.00” in the connection matrix. This will change in a future version of the extension.
Take me to the full Networks Extension Dictionary