This fixes some ambiguities around compounds, because methods handled direction of edges somewhat inconsistent.