Package it.unimi.di.prog2.h25.digraph
Class DiGraphs
java.lang.Object
it.unimi.di.prog2.h25.digraph.DiGraphs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Renders a dot source to a PDF file (invoking an external command).static <T> void
fromAdjacencyMap
(Map<T, Collection<T>> adjacency, DiGraph<T> graph) static <T> String
Returns the dot representation of the given graph.static <T> String
Returns the dot representation of the given graph.
-
Constructor Details
-
DiGraphs
private DiGraphs()
-
-
Method Details
-
fromAdjacencyMap
-
toDot
Returns the dot representation of the given graph.- Type Parameters:
T
- the type of the graph nodes.- Parameters:
g
- the graph.- Returns:
- the dot representation of the given graph.
-
toDot
Returns the dot representation of the given graph.- Type Parameters:
T
- the type of the graph nodes.- Parameters:
g
- the graph.extra
- extra configuration to be added to the dot source.- Returns:
- the dot representation of the given graph.
-
dotToPdf
Renders a dot source to a PDF file (invoking an external command).- Parameters:
dot
- the dot sourcepath
- path of the PDF to create.
-