Implement new graph with set relation.