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 random triangulations in a bijective way #19520
Comments
Commit: |
New commits:
|
Branch: u/chapoton/19520 |
comment:2
Hello, If you add this then I do not think that we need our former 'randomtriangulation' anymore. Nathann P.S.: The difference between |
comment:3
Well, this is a different "random triangulation", not the same distribution at all. Mine is better because it's almost uniform, but nevertheless one could keep the other. Should I use |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
Hello Frédéric, Yours is clearly better, and unless there is a specific reason why we should First, because 'graphs.RandomTriangulation' should preferably be what you If you insist on keeping the other, then perhaps it could be a (non-default)
Yes, please. Let us not waste ressources when we can easily avoid it. Nathann |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
ok, done. So this ticket now replaces the old implementation of |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
Hello Frédéric, I only read the content of Is there any reason why you add +3n and -n in to 'height', instead of compution '3*number_of_1 - number_of_zeroes' like in Proposition 4.2? Nathann |
comment:11
Hello, yes, this part is indeed already not clear. I am not sure to be convinced myself The idea is (like for usual conjugation into Dyck words) to assign a height at every step of the path, and to cut where the height is minimal or almost minimal here... |
comment:12
I'm sorry but I will not accept a code without being convinced that it is correct. Please make sure that this part does what it should, and then set this ticket to Nathann |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:51
ok, it suits me. As far as I can tell, this is good to go The resulting graphs can be nicely displayed by Ivan Kuckir graph viewer. |
comment:52
Okay. I'll do a final check once at home and it will probably be reviewed tonight.
What is that? Nathann |
comment:53
|
comment:54
Don't you want to help me improve 'g.show(method='js')' instead? I am tring to add a zooming feature right now. It already works in d3.js but I'm not exactly a js expert. Nathann |
comment:55
Errrrrrr... Don't know if it is my fault, but I just noticed that
Nathann |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:57
Arg... Sorry sorry, I was about to push it but I am currently experimenting with the distribution, to check if everything is 'uniform as expected'. It was my fault, and I did not expect you to fix it for me |
comment:58
Hmmmmmmm... Okay okay. From looking at the distribution I can't say that I quite like it, but then I forgot too much about statistics to prove it in any way Nathann |
comment:59
The distribution is not exactly uniform, because it is uniform for "rooted" triangulations, and the presence of automorphisms breaks the uniformity. But in the large size limit, only a negligible number of triangulations do have automorphisms, so this becomes a better and better approx to uniform distribution. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:61
If you don't see anything wrong in this last commit, you can set the ticket to Nathann |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:63
ok, let it be. Thanks a lot for your collaboration. |
comment:64
Merge conflict, try again with the next beta |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed branch from public/19520 to |
This will provide a fast uniform (almost) random generator for triangulations.
This uses the algorithm via a bijection with blossoming trees due to Schaeffer and Poulalhon.
CC: @nathanncohen
Component: graph theory
Keywords: random graph
Author: Frédéric Chapoton
Branch/Commit:
82289ac
Reviewer: Nathann Cohen
Issue created by migration from https://trac.sagemath.org/ticket/19520
The text was updated successfully, but these errors were encountered: