Introduce Context to capture dpc and whether last edge label is outside.