fn print_array(path : &[Node]){
	print!("[");
	let path_length = path.len();
	let mut counter = 0;
	for each_node in path.iter() {
		print!("{}", each_node.id);
		if counter < path_length-1 {
			print!(", ");
		}
		counter += 1;
	}
	print!("]");
}
//Print solution path in array format
Print solution path in array format
Print solution path in array format
fn print_array(path : &[Node]){
	print!("[");
	let path_length = path.len();
	let mut counter = 0;
	for each_node in path.iter() {
		print!("{}", each_node.id);
		if counter < path_length-1 {
			print!(", ");
		}
		counter += 1;
	}
	print!("]");
}
fn print_array ( path : & [ Node ] ) { print ! ( " " ) ; let path_length = path . len ( ) ; let mut counter = 0 ; for each_node in path . iter ( ) { print ! ( " " each_node id ) ; if counter < path_length - 1 { print ! ( " " ) ; } counter += 1 ; } print ! ( " " ) ; }
Print solution path in array format
Print solution path in array format
path
&[Node]
path
&[Node]