| 71 | |
| 72 | |
| 73 | class Node: |
| 74 | def __init__(self, _id: str, _type: str, x: int, y: int, properties: dict, **kwargs): |
| 75 | self.id = _id |
| 76 | self.type = _type |
| 77 | self.x = x |
| 78 | self.y = y |
| 79 | self.properties = properties |
| 80 | for keyword in kwargs: |
| 81 | self.__setattr__(keyword, kwargs.get(keyword)) |
| 82 | |
| 83 | |
| 84 | class EdgeNode: |