Implemented domain_vertex method in DomainGraph class.