getSrcDstIndices: Find indices of source and destination for each point-to-point flow
Description
This works only for routing matrices that include all
aggregate source and destination flows. It is often easier
to build these indices manually via string processing or
during the construction of the routing matrix.
Usage
getSrcDstIndices(A)
Arguments
A
routing matrix of dimension m x k. This should
be the reduced-rank version including all aggregate
source and destination flows.
Value
list consisting of two component, src and dst, which are
integer vectors of length k containing the index (in y = A
x) of the source and destination flows that each
point-to-point flow is part of.