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 d763845 commit ea647b7Copy full SHA for ea647b7
cyaron/graph.py
@@ -48,7 +48,8 @@ def to_str(self, **kwargs):
48
str output(Edge) = str -> the convert function which converts object Edge to str. the default way is to use str()
49
list[int] node_shuffler(list[int])
50
= lambda table: random.sample(table, k=len(table))
51
- -> the random function which shuffles the vertex sequence
+ -> the random function which shuffles the vertex sequence.
52
+ Note that this function will actually be passed in a `range`!
53
list[Edge] edge_shuffler(list[int])
54
-> a random function. the default is to shuffle the edge sequence,
55
also, if the graph is undirected, it will swap `u` and `v` randomly.
0 commit comments