Added generic Graph spec for equality and merging