Completion of code for short term graphs