Skip to content

Commit 7f72a69

Browse files
committed
make it a constructor
1 parent 8dc01bb commit 7f72a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2466,7 +2466,7 @@ mod graphsim {
24662466

24672467
#[pymethods]
24682468
impl GraphSim {
2469-
#[staticmethod]
2469+
#[new]
24702470
pub fn new(nodes: usize) -> GraphSim {
24712471
GraphSim {
24722472
nodes: repeat_n(Node::default(), nodes).collect(),

0 commit comments

Comments
 (0)