public static <T> StringBuilder print( Trie<String, T> trie )
   {
      final String LS = System.lineSeparator();
      
      StringBuilder out = new StringBuilder();
      
      for (TrieNode<String, T> node : trie.nodeSetAll())
      {
         for (int i = 0; i < node.getStart(); i++)
         {
            out.append( ' ' );
         }
         
         out.append( node.getSequence().substring( node.getStart(), node.getEnd() ) );
         
         if (node.value != null)
         {
            out.append( " = " );
            out.append( node.value );
         }
         
         out.append( LS );
      }
      
      return out;
   }