de.tsl2.nano.util.GraphLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.common Show documentation
Show all versions of tsl2.nano.common Show documentation
TSL2 Framework Commons (Collections, Actions/Excecution, Readers, Xml, Print, Mail, FuzzyFinder, Proxies, Network-Structure)
package de.tsl2.nano.util;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Collection;
import java.util.function.Function;
import de.tsl2.nano.core.ENV;
import de.tsl2.nano.structure.IConnection;
import de.tsl2.nano.structure.INode;
/**
* 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
*/
public class GraphLog {
protected StringBuilder graph;
protected String name;
protected Function