Skip to content

Calling clear() on BipartiteGraph does not clear left and right vertex sets #39756

@zezoo050

Description

@zezoo050

Steps To Reproduce

sage: B = BipartiteGraph([(0,2), (0,3), (1,2), (1,3)])
sage: B.left, B.right
({0, 1}, {2, 3})
sage: B.clear()
sage: B.left, B.right
({0, 1}, {2, 3})

Expected Behavior

should return empty sets (set(), set()).

Actual Behavior

The vertex sets left and right are not cleared, returning their original value before B.clear() was called.

Additional Information

No response

Environment

  • OS: Ubuntu 24.04.2
  • Sage Version: 10.6

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