Closed
Description
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