RC-214 added graph size check,