Class GraphLog

java.lang.Object
de.tsl2.nano.util.GraphLog
Direct Known Subclasses:
ActivityGraph

public class GraphLog extends Object
Provides creation of text blocks to be interpreted by Gravizo and rendered with Graphviz inside a markdown text.
 Use:
   new GraphLog("mynodes").create(MyListOfNodes).write();
   
 this will create the file 'mymodes-graph.md.html'
Author:
Thomas Schneider
  • Field Details

  • Constructor Details

    • GraphLog

      public GraphLog(String name)
    • GraphLog

      public GraphLog(String name, Function<Object,String> styler)
      Parameters:
      name - name of graph. will be used inside the file name, too
      styler - functional expression to add a styling like a color to the link (e.g.: d -> "color=" + cc.get((Integer)Math.round((int)d*10)))
  • Method Details