Created DomainGraph class.