Graph Code Updated

Typed graphs now