chiark
/
gitweb
/
~ian
/
moebius2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b956af
)
get sign right, but it is still wrong
author
Ian Jackson
<ian@davenant.relativity.greenend.org.uk>
Fri, 4 Jan 2008 19:21:11 +0000
(19:21 +0000)
committer
Ian Jackson
<ian@davenant.relativity.greenend.org.uk>
Fri, 4 Jan 2008 19:21:11 +0000
(19:21 +0000)
graph.c
patch
|
blob
|
history
diff --git
a/graph.c
b/graph.c
index 31e317d363112027ef1eae6b7405c50cab299218..74d93bfd6dd454164d6c1cf0b02a652e04a5a927 100644
(file)
--- a/
graph.c
+++ b/
graph.c
@@
-44,7
+44,7
@@
void graph_layout_prepare() {
breadth_first_search(v1, sqdistances[v1]);
alpha= 2;
- beta=
-
log(10)/log(alpha);
+ beta= log(10)/log(alpha);
beta_prime= (1-beta)/2;
printf("alpha=%g beta=%g beta'=%g\n", alpha,beta,beta_prime);
}
@@
-93,7
+93,7
@@
double graph_layout_cost(const Vertices v, const double vertex_areas[N]) {
double s2= dist2 * meanedgelength2;
- /* energy = (d/s)^(1-beta) where beta is
-
log\_{alpha}(10)
+ /* energy = (d/s)^(1-beta) where beta is log\_{alpha}(10)
* energy = ((d/s)^2) ^ (1-beta)/2
* let beta' = (1-beta)/2
*/