typeGraph snippet fixed
minor modification for clarity