Steps To Reproduce
for a graph g, outputs of g.orientation() and g.acyclic_orientation() are rather different, type-wise.
As reported by Gordon Royle on sage-devel
My suggestion is to redefine orientations of a graph $\Gamma=(V,E)$ to be a function $E\to V\times V$,
and return these, eventually making this the default.
Expected Behavior
should be consistent
Actual Behavior
is not
Additional Information
see also https://ask.sagemath.org/question/79427/the-acyclic-orientations-function-behaves-unexpectedly/
Environment
- OS: all
- Sage Version: 10.*
Checklist