update relationship_mining.py
add find direction