Package it.unimi.dsi.lama4j
Class Lattices
java.lang.Object
it.unimi.dsi.lama4j.Lattices
public class Lattices extends Object
-
Method Summary
Modifier and Type Method Description static void
generateDot(Lattice lattice, Map<Element,Set<Element>> coveringRelation, PrintWriter writer, boolean labels)
Output Graphviz code for the covering relation of a lattice.
-
Method Details
-
generateDot
public static void generateDot(Lattice lattice, Map<Element,Set<Element>> coveringRelation, PrintWriter writer, boolean labels)Output Graphviz code for the covering relation of a lattice.Note that the code will include just nodes and arcs. Initial and final code will have to be set up manually.
- Parameters:
lattice
- a lattice.coveringRelation
- the covering relation oflattice
, as computed byLattice.coveringRelation()
.writer
- a writer to output the code.labels
- whether labels should be added to the emitted code.
-