The original code does not support str() of Edge if the src_node and dest_node fields are not Node. However, the Edge returned from the query have int values in both src_node and dest_node fields.
I modify __str__(), so that it will print () if the src_node and dest_node are not Node instances.
This PR is developed based on my last PR request #58 .
The original code does not support
str()
ofEdge
if thesrc_node
anddest_node
fields are notNode
. However, theEdge
returned from thequery
haveint
values in bothsrc_node
anddest_node
fields.I modify
__str__()
, so that it will print()
if thesrc_node
anddest_node
are notNode
instances.This PR is developed based on my last PR request #58 .