graph: kind's ToStr trait is only needed in json