I get the error:
libcore.set_vertex_property(g._Graph__graph, _prop("v", g, self), val)
AttributeError: 'NoneType' object has no attribute '_Graph__graph'
Please remember to provide *minimal* and *self-contained* code that
shows the problem, not code snippets or vague descriptions, as those
cannot be reproduced.