Skip to content

Mistake in complementer signature #883

Description

@dcartermath

Describe the bug
In the signature of Graph.complementer, the default argument for loops is stated as False, when the default behavior is actually True. (I think the behavior should change to match the signature; in practice I suspect that loops=False is the more common usage.)

To reproduce

import igraph as ig
G = ig.Graph(1)
print(G.complementer().get_edgelist()) #should be the empty list

Version information
Python version 3.12.7, igraph version 1.0.0 installed via pip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions