new interpolation logic for simulator & bug fixes in graph