changeset 36:14e97bffdd55 draft

was generating malformed dot
author Nick <nick@somerandomnick.ano>
date Fri, 11 Jun 2010 20:04:28 +0000
parents bec289fc3b4a
children fd9b90f6fbc1
files doc/ucis.ano/bgp_graph/path_list_to_dot.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/ucis.ano/bgp_graph/path_list_to_dot.php	Fri Jun 11 19:58:52 2010 +0000
+++ b/doc/ucis.ano/bgp_graph/path_list_to_dot.php	Fri Jun 11 20:04:28 2010 +0000
@@ -33,10 +33,10 @@
   if (!array_key_exists($link,$nodelist)) $nodelist[$node]=nodename($link);
 };
 
+print("graph BGP_nodes {\n");
 foreach ($nodelist as $node => $name)
  print "\t".$node.' [label="'.$name.'"]'."\n";
 
-print("graph BGP_nodes {\n");
 foreach ($nodes as $node => $links) {
 	foreach ($links as $link => $dummy) {
 		print("\t".$node.' -- '.$link.";\n");