robvandenbogaard / elm-knowledge-graph / Knowledge.Graph.Focus

This module defines a Focus and Target type to represent that a node or edge can be selected as the focus of the graph. The Focus is used for displaying a limited-scope, i.e. focused part of a graph.

Data types


type alias Focus =
List Target

Contains a list of Targets.


type Target
    = Node Basics.Int
    | Edge ({ from : Basics.Int, to : Basics.Int })

A Focus Target can be a node or edge. A Node is identified by a single Int index, an Edge by a from and to node id.