Skip to content

BipartiteGraph.__init__ does not properly initialize for some inputs #2473

@rhinton

Description

@rhinton
mannequin

BipartiteGraph.init does not call the base class __init__ for some inputs, leaving the object unusable. For example,

sage: B = BipartiteGraph(None)
sage: B

will throw an exception because the base class attributes have not been initialized. The attached patch ensures the base class __init__ is called.

Component: graph theory

Issue created by migration from https://trac.sagemath.org/ticket/2473

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions