move get_irn_edge_kind to internal API