We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5c79b4 commit 83dba3eCopy full SHA for 83dba3e
pynode_next/edge.py
@@ -82,6 +82,16 @@ def weight(self):
82
"""Returns the edge's weight. Returns an empty string if weight wasn't defined at init and hasn't been changed since."""
83
return self._weight
84
85
+ def set_directed(self, directed=True):
86
+ """Sets whether or not the edge is directed"""
87
+ self._directed = directed
88
+ core.ax(lambda x: self._dispatch_wrapper(x, {"directed": directed}))
89
+ return self
90
+
91
+ def directed(self):
92
+ """Returns whether or not the edge is directed"""
93
+ return self._directed
94
95
def traverse(self, initial_node=None, color=Color.RED, keep_path=True):
96
if initial_node == None:
97
source = self._source
0 commit comments