handle graphml edge direction