Class DotGraphUtil
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.graph.DotGraphUtil
Util to write Dot graphs.
The resulting file can be tranformed to a grapg with the command
dot -Tpng -o out.png file.dot
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
makeQuotedNodeID
(String nodeId) static <T> void
renderFile
(File dotFile, File imageFile, String dotCommand, String type) static <T> void
renderFilePng
(File dotFile, File imageFile) static <T> void
renderGraph
(Map<T, Set<T>> edges, File imageFile) static <T> void
writeDirectedGraphToDotFile
(File dotFile, List<Map.Entry<T, T>> edges) static <T> void
writeDirectedGraphToDotFile
(File dotFile, List<Map.Entry<T, T>> edges, Function<T, String> nodeToId, String... graphAttributes) static <T> void
writeDirectedGraphToDotFile
(File dotFile, Map<T, Set<T>> edges) static <T> void
writeDirectedGraphToDotFile
(File dotFile, Map<T, Set<T>> edges, Function<T, String> nodeToId, String... graphAttributes)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
DotGraphUtil
public DotGraphUtil()
-
-
Method Details
-
writeDirectedGraphToDotFile
-
writeDirectedGraphToDotFile
-
writeDirectedGraphToDotFile
-
writeDirectedGraphToDotFile
-
renderGraph
-
renderFilePng
- Throws:
IOException
-
renderFile
public static <T> void renderFile(File dotFile, File imageFile, String dotCommand, String type) throws IOException - Throws:
IOException
-
makeQuotedNodeID
-