Skip to content

Conversation

@aleurbi
Copy link

@aleurbi aleurbi commented Jul 20, 2022

(need to be optimized a bit, we are working on it)

Copy link
Collaborator

@nwlandry nwlandry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, just a few changes :)


return G

def full_rewire(self, G, accuracy, max_step=0, copy_graph=True, verbose=False):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max_step should be called timesteps to be consistent with other methods.


# Single step: Stochastic
# This method may return the same graph
def step_rewire(self, G):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we agreed on a copy_graph keyword with a False default value for step_rewire as well?

import random as rand


class RewireBipartite(BaseRewirer):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a check to see whether the input graph is, in fact, bipartite?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the step_rewire method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants