From 8fcf0e96a38bfffb59432bb7adb11ddae9544337 Mon Sep 17 00:00:00 2001 From: Sebastian Uerlich Date: Wed, 23 Oct 2019 15:55:08 +0200 Subject: [PATCH] adds a workaround to access nodes with node The current workaround in networkx was removed which enabled access of nodes with the node attribute. This commit adds the workaround in uesgraphs. --- uesgraphs/uesgraph.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uesgraphs/uesgraph.py b/uesgraphs/uesgraph.py index bc6bf1e..7f8b782 100644 --- a/uesgraphs/uesgraph.py +++ b/uesgraphs/uesgraph.py @@ -121,6 +121,10 @@ def __init__(self): self.simplification_level = 0 self.pipeIDs = [] + @property + def node(self): + return self.nodes + @property def positions(self): for node in self.nodes(data=True):