changed prototype & Graph Construction from JSON - no longer using integers in JSON