Python Graph Data Structure Example