Random line graphs and a linear law for assortativity