Linear Graphs With Context