Skip to content

harmonise the interfaces of orientation() and acyclic_orientation() #38758

@dimpase

Description

@dimpase

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

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions