convertNodePair: transform a pair of nodes (i,j) into an identifying integer
Description
Associates an identifying integer with a pair of nodes (i,j)
Usage
convertNodePair(i, j, n, directed)
Arguments
j
scalar or vector, same length as i
directed
booelan to indicate whether the model is directed or undirected
Details
returns the row number of the matrix build by listNodePairs(n)
containing the pair (i,j)