资源说明:php version Implemention of the Kamada-Kawai algorithm for Force Directed Graph layout
This is a php version implemention of the Kamada-Kawai algorithm for force directed graph layout.
Does not respect filter calls, and sometimes crashes when the view changes to it.
see "Tomihisa Kamada and Satoru Kawai: An algorithm for drawing general indirect graphs. Information Processing Letters 31(1):7-15, 1989"
see "Tomihisa Kamada: On visualization of abstract objects and relations. Ph.D. dissertation, Dept. of Information Science, Univ. of Tokyo, Dec. 1988."
author ggsonic
*the getDistance function needs to be hacked. For now, it is just a very simple strategy to get the weight of distance
code sample to use:
$i, "conn" => $Connections);
}
$kklayout = new KKLayout ( $nodes );
$kklayout->initialize ();
while ( ! $kklayout->done () ) {
$kklayout->step ();
}
//var_dump($kklayout->xydata);exit;
?>
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。
English
