From 97dc9f0c94dc9bf0f244be8aedcf137574cc497e Mon Sep 17 00:00:00 2001
From: hbui <hong-phuc.bui@htwsaar.de>
Date: Tue, 23 Jul 2024 17:21:36 +0200
Subject: [PATCH] fix spell

---
 stundenplan/src/pygraph/graphdemo.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/stundenplan/src/pygraph/graphdemo.py b/stundenplan/src/pygraph/graphdemo.py
index 4b999e8..2371fd4 100644
--- a/stundenplan/src/pygraph/graphdemo.py
+++ b/stundenplan/src/pygraph/graphdemo.py
@@ -8,6 +8,7 @@
             if not isinstance(vertex, int):
                 raise TypeError(f"Argument {vertex} is not a valid vertex")
             self._adjacent[vertex] = set()
+            self._vertex_attribute[vertex] = {}
         pass
 
     def add_edge(self, u, v):
@@ -35,7 +36,7 @@
         """
         if vertex not in self._adjacent:
             raise ValueError(f"Graph does not include vertex {vertex}")
-        old_attributes = self._vertex_attribute[vertex]
+        old_attributes = self._vertex_attribute.get[vertex]
         self._vertex_attribute[vertex] = old_attributes | properties
         return self
         pass

--
Gitblit v1.10.0-SNAPSHOT