Topological representation of cloth state for robot manipulation