def from_entity(self, entity): Graph.from_entity(self, entity, arcClass=TransitArc) self.stop_to_cluster = entity["stop_to_cluster"] self.cluster_id = entity["cluster_to_node_id"]