Skip to content

Getting Started

Guowei Chen edited this page Sep 20, 2019 · 2 revisions

Getting Started with the API

Initial formal context

Map<String, Set<String>> context = new HashMap<>();

Constructing of the set of formal concepts

Hermes<String, String> hermes= new Hermes<>();
hermes.init(context);
hermes.compute();
Set<Concept<String, String>> concepts = hermes.listAllConcepts();

Constructing of concept lattices

ConceptLattice<String, String> concept_lattices = new ConceptLattice<>(concepts);
concept_lattices.buildTopDown();
Map<Concept<String, String>, Set<Concept<String, String>>> supSubConcepts = concept_lattices.getSupSubConcepts();

Output lattice with DOT language

String output = concept_lattices.dotLangFormat();

Concept Lattice

Clone this wiki locally