Advertisement
Guest User

Untitled

a guest
Nov 5th, 2017
553
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.38 KB | None | 0 0
  1. nx::Class create GraphPrinted -superclass Graph {
  2.     :public method dot_print {} {
  3.         append collections "graph {\n"
  4.         foreach edge ${:edges} {
  5.             append collections "\t"
  6.             append collections "[string trim [$edge getN1] "::nsf::__#"] -- [string trim [$edge getN2] "::nsf::__#"]"
  7.             append collections "\n"
  8.         }
  9.         append collections "}"
  10.         puts $collections
  11.         return $collections
  12.     }
  13.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement