Find indices of source and destination for each point-to-point flow

Share:

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

1

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.

Examples

1
2
data(cmu)
src.dst.ind <- getSrcDstIndices(cmu$A.full)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.