Skip to content

Greatly speed up equality check of equal graphs #19077

@novoselt

Description

@novoselt

The current code goes over all vertex pairs and checks existence of all possible edges, which is extremely inefficient for, say, posets, whose graphs are far from complete. This is a big problem when mixed with unique representation of finite posets.

So let's iterate over edges directly.

CC: @fchapoton @nathanncohen

Component: graph theory

Author: Andrey Novoseltsev

Branch/Commit: 959c85d

Reviewer: Jori Mäntysalo, Nathann Cohen

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions