General Graph infrastructure