fixed __str__ output for node 0 and rel 0