Skip to content

Commit 92488e0

Browse files
committed
graph_tools : printing tree
1 parent 17fa72b commit 92488e0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

module/move/graphs_tools/src/tree_print.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ mod private
4141
{
4242
#![ allow( non_upper_case_globals ) ]
4343
use iter_tools::Itertools;
44-
const _up_down : &str = "│ ";
45-
const _up_down_right : &str = "├─ ";
46-
const _left_right : &str = "─";
47-
const _down_right : &str = "┌─";
44+
const up_down : &str = "│ ";
45+
const up_down_right : &str = "├─ ";
46+
// const _left_right : &str = "─";
47+
// const _down_right : &str = "┌─";
4848

4949
let mut visited = collection_tools::HashSet::new();
5050
let mut stack = collection_tools::Vec::new();
@@ -53,15 +53,15 @@ mod private
5353
{
5454
let left = if level > 0
5555
{
56-
std::iter::repeat( _up_down ).take( ( level - 1 ) as usize ).join( " " )
56+
std::iter::repeat( up_down ).take( ( level - 1 ) as usize ).join( " " )
5757
}
5858
else
5959
{
6060
String::new()
6161
};
6262
let right = if level > 0
6363
{
64-
_up_down_right
64+
up_down_right
6565
}
6666
else
6767
{
@@ -72,7 +72,7 @@ mod private
7272

7373
let push = | stack : &mut collection_tools::Vec< ( Self::NodeId, isize ) >, node_id, level |
7474
{
75-
println!( "push {:?} level:{}", node_id, level );
75+
// println!( "push {:?} level:{}", node_id, level );
7676
stack.push( ( node_id, level ) );
7777
};
7878

0 commit comments

Comments
 (0)