Line graph L(G): one vertex per edge (a--b / a->b). Undirected edges are adjacent when they share an endpoint; directed edge u→v points to every edge leaving v. $O(E^2)$.
a--b
a->b
u→v
v
Line graph L(G): one vertex per edge (
a--b/a->b). Undirected edges are adjacent when they share an endpoint; directed edgeu→vpoints to every edge leavingv. $O(E^2)$.