Skip to content

Bad error message for weighted adjacency matrix #33562

Closed
@kcrisman

Description

@kcrisman
H=Graph({0:[1,2,3], 4:[0,2], 6:[1,2,3,4,5]})
H.weighted(True)
H.weighted_adjacency_matrix()

should give something useful, but instead is an inexplicable error message

TypeError: NoneType takes no arguments

This happens whether or not this graph is said to be weighted. There should be an error catch for a useful message.

Component: graph theory

Author: David Coudert

Branch/Commit: fe8b4d5

Reviewer: Dima Pasechnik

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions