-
Notifications
You must be signed in to change notification settings - Fork 16
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
Consistency of show_dot_graph
and get_num_nodes
#504
Comments
I think |
What's naive/non-naive here? No cache vs. cache-by-id? Or something else? |
Naive = no cache. |
Okay, thank you both! |
A question came up while revisiting #489 with @kajalpatelinfo: should
show_dot_graph
be consistent withget_num_nodes
, in the sense that the number of nodes displayed in the graph matches whatget_num_nodes
computes? It looks likeshow_dot_graph
's code is based onCopyMapper
, which ignores duplicates, but currentlyget_num_nodes
usesid(expr)
for a hash key, meaning it counts duplicates separately.I'm tempted to think they should behave the same, at least by default. It might actually be useful to give them both an option to include/exclude duplicates? Thoughts @inducer?
The text was updated successfully, but these errors were encountered: