Introduced graph layout component and toString method implements.