attrs = all_attrs.difference(set(ignored_attributes))
// Don"t use node type as attribute:
attrs.discard(graph._node_type_attr)
// Set found attributes with converter
self.add_attribute_list(node_type, attrs, converter, **conv_args)
After Change
raise TypeError("Graph must be a StellarGraph or StellarDigraph object")
// Go through graph to find node attributes
attrs = set()
for node in graph.nodes_of_type(node_type):
attrs |= graph.node_attributes(node)
// Remove any ignored attributes
attrs = attrs.difference(set(ignored_attributes))