Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def parse_node(self, cell):
# Node ID (integer),
# [label string offset (integer)],
# [[name, value type, value] X N]
node_id = int(cell[0])
label = None
if len(cell[1]) != 0:
label = self.graph.get_label(cell[1][0])
properties = self.parse_entity_properties(cell[2])
return Node(node_id=node_id, label=label, properties=properties)