Links & relationships

Isolated facts are hard to remember; connected ones stick. Lexicon lets you link items with typed relationships, turning a flat dictionary into a concept graph.

Item editor Links tab listing outgoing typed relationships
Outgoing links: relationships from the current item to other items.

In the item editor, open the Links tab to create relationships from the current item to any other item in your lexicon:

  1. Click Add.
  2. Pick the target item.
  3. Choose the relation type (see the table below).
  4. Save — the reverse direction automatically appears in the target's Backlinks.
Item editor Backlinks tab listing incoming relationships from other items
Backlinks: who references this item.

The Backlinks tab shows — and lets you create — relationships pointing to the current item from a source item. This is handy when you're working on a hub concept and want to attach many children to it without opening each child separately.

Relation types

Choosing the right type makes the graph meaningful. Lexicon offers ten:

TypeMeaningExample
Is ATaxonomy — the source is a kind of the target.std::vector is a container
Part OfComposition — the source is a component of the target.B-tree node part of B-tree
UsesThe source makes use of the target.quicksort uses partitioning
Depends OnThe source requires the target to work or make sense.TLS depends on X.509 certificates
ImplementsThe source realizes the target interface or concept.std::map implements ordered associative container
RelatedGeneral association worth remembering.coroutines related to generators
ContrastsConcepts best understood by comparing them.TCP contrasts with UDP
Alternative ToInterchangeable solutions to the same problem.CMake alternative to Meson
Parent OfExplicit downward hierarchy link.container parent of sequence container
CustomA relationship named by you; the Custom Value must not be empty.book Written By author
💡

Don't overthink it When no specific type fits, Related is perfectly fine. A rough link now beats a perfect link never — you can retype it any time.

Wiki links in the content

Links do not have to be made in a dialog. Write [[Title]] anywhere in an item's Markdown content and it becomes a link to that item:

A title is matched exactly first, then ignoring ASCII case, then as an alias, so [[forwarding reference]] finds universal reference when that is one of its aliases. Code spans and code blocks keep their brackets.

In the rendered content a wiki link opens its item; when no item has that title, Lexicon offers to create it on the spot. On the Links tab, Add links from content turns every name the content mentions into a Related link and lists the names that have no item yet. The web client and the Android app do the same.

Reading in context

The graph pays off while browsing: select any item in the main table and the lower pane shows its rendered content followed by a links and backlinks summary. You see a concept's neighborhood at a glance, without opening the editor.

The relationship graph

View → Relationship graph... (Ctrl+G) draws the neighbourhood of the selected item: it sits in the middle, the items it links to and the items linking to it around it, as arrows labelled with the link type.

The relationship graph: the selected item in the middle with labelled arrows to its neighbours
The graph of one item, two links away, with the zoom and full-screen buttons above it.
ControlWhat it does
DepthOne, two or three links away. At most 150 items are drawn; the dialog says when more are in reach.
Click an itemCentres the graph on it.
Double click (or Enter)Opens the item.
+ / − / FitZoom in, zoom out, and back to the whole graph. The wheel zooms too, and dragging the background moves the view.
Full screenGives the graph the whole window; Esc leaves it again.
Quiz cardsStarts a card quiz over the graph's centre and every item shown at its current depth.

The web client opens the same graph from its View menu and from the link preview under an item. On Android, open it from the item page's menu; tap a node or a row below the graph, then tap Centre here to redraw around it. A pinch zooms the Android graph.

The relationship graph in the Android app
On Android, with a list of the items below
The relationship graph on Android, full screen and zoomed in
Full screen and zoomed in