Node, metoda getLabels - zamiana edges na self.edges!