TrapezoidGraph implementation (failing tests)