-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
Implement distance graphs #7533
Comments
Attachment: trac_7533_distance_graphs.patch.gz |
comment:2
Hello !!!! Several comments :
Short of this, the documentation/tests are excellent and this patch will definitely be used !!! Nathann |
comment:3
Hi Nathann, Thanks for the excellent suggestions. I'll get a list argument working and look at using the shortest path routine. Someplace in the code I got the impression the iterator is faster (by about a factor of 2). I've tested the code for digraphs, but really am only interested in undirected graphs at the moment. With some time, I could easily generalize it later. Rob |
comment:4
Attachment: trac_7533_distance_graphs_2.patch.gz New patch addresses two of Nathann's suggestions.
|
comment:5
Positive review !!! You changed the definition to have d ( integer ) represent an unique distance, and not range(distance), which is not the best for my usage, but clearly the best for Sage and for comprehension. Good idea. I created ticket #7540 about the difference in speed, which is an oddness we must fix ... Positive review, excellent patch ! Nathann |
Reviewer: Nathann Cohen |
Merged: sage-4.3.alpha1 |
Create a new graph from an old graph by making vertices of the new graph adjacent exactly when they are a certain distance apart in the old graph. This construction is useful in algebraic graph theory.
Component: graph theory
Keywords: distance graph
Author: Rob Beezer
Reviewer: Nathann Cohen
Merged: sage-4.3.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/7533
The text was updated successfully, but these errors were encountered: