-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added heatmap #206
added heatmap #206
Conversation
Hmm, interesting. It seems like there is no speedups on your machine while running the timing task. Maybe something you can investigate? @Schefflera-Arboricola |
@MridulS sir,
So I added this code to class ParallelGraph:
__networkx_plugin__ = "parallel"
def __init__(self, graph_object):
self.graph_object = graph_object
def is_multigraph(self):
return self.graph_object.is_multigraph()
def is_directed(self):
return self.graph_object.is_directed()
+ def __getitem__(self, node):
+ if node in self.graph_object:
+ return list(self.graph_object.neighbors(node))
+ else:
+ raise KeyError(f"Node {node} not found in the graph.")
+ def __iter__(self):
+ return iter(self.graph_object.nodes())
+
+ def __len__(self):
+ return len(self.graph_object)
but I am still getting a similar heatmap. Running on: MacBook Air(macOS: 13.3.1(a)) Could you please help me figure out what might be the issue here, or redirect me to some resource where I could learn more about it(parallel algorithms and their benchmarking, etc.)? Also, if a cell in the heatmap corresponds to a graph with a particular number of nodes and a particular edge probability, then why have we used Thank you very much for your patience :) |
@MridulS sir, I think it was happening because I didn't run But I am still doubtful about this :
Thank you :) |
Yes that looks like a bug, it should be using Could you send a PR to the nx-parallel repo to fix it? |
thanks! |
heatmap task