³ª¹« :: ½Ã°¢È­

TREE :: Visualize´Â Æ®¸® ±¸Á¶¸¦ ½Ã°¢È­ÇϱâÀ§ÇÑ Perl ¸ðµâÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

³ª¹« :: ½Ã°¢È­ ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Stevan Little
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~stevan/

³ª¹« :: ½Ã°¢È­ ű×


³ª¹« :: ½Ã°¢È­ ¼³¸í

TREE :: Visualize´Â Æ®¸® ±¸Á¶¸¦ ½Ã°¢È­ÇϱâÀ§ÇÑ Perl ¸ðµâÀÔ´Ï´Ù. Tree :: Visualize´Â Æ®¸® ±¸Á¶¸¦ ½Ã°¢È­ÇϱâÀ§ÇÑ Perl ¸ðµâÀÔ´Ï´Ù. Synopsis »ç¿ë Æ®¸® :: ½Ã°¢È­; Æ®¸® :: ¹ÙÀ̳ʸ®; ³» $ tree = tree :: binary-> new ( "*") -> setleft (tree :: binary-> new ( "+") -> setleft (tree :: binary-> new ( "2")) - > setright (tree :: binary-> new)) -> setRight (tree :: binary-> new ( "+") -> setleft (tree :: binary-> new)) -> setRight (tree :: binary-> new ( "5")); MY $ Visualize = TRAS :: Visualize-> New ($ TREE, 'ASCII', 'TOPDWORD'); $ Visualize-> Draw () Àμâ; # + --- + # + -------- | * | ------- + # | | + --- + | # + --- + +-- + # + - | + | - + + - | + | - + # | | + --- + | | + --- + | # + --- + +-- + +-- + +-- + # | 2 | | 2 | | 4 | | 5 | # + --- + +-- + +-- + +-- + My $ TREE = TRAY :: BINARY :: Search-> new (); ³» $ °ª (7, 3, 1, 0, 2, 5, 4, 6, 11, 9, 10, 8, 13, 12, 14) {$ tree-> insert ($ value => $ value); } My $ Visualize = TREE :: Visualize-> New ($ TREE, 'ASCII', 'Diagonal'); $ Visualize-> Draw () Àμâ; # (7) ------------- (11) ----- (13) - (14) # | | | # | | | (12) # | | # | | (9) - (10) # | | # | | (8) # | # (3) ----- (5) - (6) # | | # | | (4) # | # (1) - (2) # | # (0) ³» $ tree = tree :: simple-> new ( "test") -> addChildren (tree :: simple-> new ( "test-1") -> AddChildren (tree :: simple-> new) "Test-1-1"), Tree :: Simple-> New ( "Test-2"), Tree :: Simple-> New ( "Test-3")); MY $ Visualize = TRAS :: Visualize-> New ($ TREE, 'ASCII', 'TOPDWORD'); $ Visualize-> Draw () Àμâ; # | | # + ------ + # | Å×½ºÆ® | # + ------ + # ____________ | _____________ # | | | # + --------- + + -------- + + -------- + # | Å×½ºÆ® - 1 | | Å×½ºÆ® 2 | | Å×½ºÆ® - 3 | # + --------- + + -------- + + -------- + # | # | | # + ---------- + # | | ½ÃÇè -1-1 | # + ---------- + Âü°í :ÀÌ ¸ðµâÀÇ Alpha Softwarethe ¸ñÇ¥´Â ¸Å¿ì Á¶±â ¸±¸®½ºÀÔ´Ï´Ù.ÀÌ ¸ðµâÀÇ ¸ñÇ¥´Â ¿©·¯ °¡Áö Ãâ·Â Çü½Ä ¹× ·¹À̾ƿô¿¡¼­ Æ®¸®¸¦ ½±°Ô ½Ã°¢È­ÇÏ´Â ¼ö´ÜÀ» Á¦°øÇÏ´Â °ÍÀÔ´Ï´Ù. ÇöÀç ASCII Ãâ·Â°ú Á¦ÇÑµÈ ¼öÀÇ Çü½ÄÀÌ Áö¿øµË´Ï´Ù. GraphViz µµÆ® ÆÄÀÏ·Î Ãâ·ÂÀ» Áö¿øÇÏ´Â ¸î °¡Áö Áö¿øÀÌ ÀÖÁö¸¸ Áö±ÝÀº ¹ö±×°¡ ÀÖ½À´Ï´Ù. ³ª´Â ¾ËÆÄ ¼ÒÇÁÆ®¿þ¾îÀ̹ǷΠ¾ËÆÄ ¼ÒÇÁÆ®¿þ¾îÀ̹ǷΠ¸ðµç °ÍÀ» ÇÒ °ÍÀ¸·Î ±â´ëÇÏÁö ¸¶½Ê½Ã¿À. ³»ºÎÀÇ ¸¹Àº ¼ö¾÷Àº ±¸ÇöµÇÁö ¾ÊÀ¸¸ç ¹®¼­È­ µÈ °æ¿ì °ÅÀÇ ¾ø½À´Ï´Ù. ³ª´ÂÀÌ ÁøÀüÀÇ ¼Óµµ¿¡ ´ëÇÑ ¾à¼ÓÀ»ÇÏÁö ¾ÊÁö¸¸, ÀÚü µ¿±â ºÎ¿©ÀÇ ¼ö´ÜÀ¸·Î CPAN¿¡ ÀÌ°ÍÀ» °ø°³ÇÏ°í ÀÖ½À´Ï´Ù. ¡¤ Perl ¿ä±¸ »çÇ× : ¡¤ Perl.


³ª¹« :: ½Ã°¢È­ °ü·Ã ¼ÒÇÁÆ®¿þ¾î

UI :: Dialog.

UI :: Dialog Project´Â ¹é¿£µå ŽÁö ÇÁ·Î¼¼½ºÀÇ ¿ì¼± ¼øÀ§ ¼ø¼­¸¦ Áö¿øÇÕ´Ï´Ù. ...

205

´Ù¿î·Îµå