Process a CSV representing a relation, taking one column as IDs, and returning the edges between IDs as described by the other columns