motif search - parameter k & motif.num_vertices() mismatch triggers TypeException
Hello, I just stumbled accross a super minor error that is fixable in 1 minute. Probably an overlook from an older version of Python.
If you search motifs with gt.clustering.motifs() and the number of vertices in the motif to look for does not match the given parameter k then when another exception is raised a Python TypeError is raised.
if m.num_vertices() != k: raise ValueError("all motifs must have the same number of vertices: " + k) sub_list.append(m._Graph__graph)
The error is on line 374 in graph_tool.clustering.init.py in motifs() The implicit conversion of k from int to string triggers the exception. I did not provide a code example as for this error it should not be necessary. If you still want me to create one I will add it later.