Skip to content

Incidence matrix method doesnt work for G = DiGraph({0: ['a']}) #29277

@vipul79321

Description

@vipul79321
mannequin

Current behavior:

sage: G = DiGraph({0: ['a']})
sage: G.incidence_matrix()
Traceback (most recent call last)
...
TypeError: '<' not supported between instances of 'int' and 'str'

incidence_matrix method should be able to handle the case when vertices are of mismatched types.

Depends on #22349

CC: @dcoudert

Component: graph theory

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

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