This shows you the differences between the selected revision and the current version of the page.
| ogdf:faq 15:31 21.11.2008 | ogdf:faq 15:38 21.11.2008 current | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| [[#what_is_ogdf_s_versioning_scheme|What is OGDF's versioning scheme?]]\\ | [[#what_is_ogdf_s_versioning_scheme|What is OGDF's versioning scheme?]]\\ | ||
| [[#where_can_i_learn_how_to_use_ogdf|Where can I learn how to use OGDF?]]\\ | [[#where_can_i_learn_how_to_use_ogdf|Where can I learn how to use OGDF?]]\\ | ||
| - | [[#force_deterministic_behavior|Can algorithms be forced to produce always the same results?]]\\ | + | [[#can_algorithms_be_forced_to_produce_always_the_same_results|Can algorithms be forced to produce always the same results?]]\\ |
| === What is OGDF? === | === What is OGDF? === | ||
| Line 35: | Line 35: | ||
| === Can algorithms be forced to produce always the same results? === | === Can algorithms be forced to produce always the same results? === | ||
| + | |||
| + | Some algorithms in ogdf are randomized, so their results may differ from call to call. If you want to force a deterministic behavior, you can set the random seed of C's random number generator to the same value before each call; this is done by calling the ''[[http://www.cplusplus.com/reference/clibrary/cstdlib/srand.html|srand()]]'' function with an unsigned integer value. | ||
