Context¶
The galactic.algebras.context
module defines classes for creating context.
-
class
galactic.algebras.context.
Context
(renderer: galactic.algebras.context.main.ContextRenderer = <galactic.algebras.context.main.ContextRenderer object>)¶ Bases:
collections.abc.Set
The
Context
class represents a binary relation between 2 sets.-
abstract
objects
() → Iterator[Any]¶ The
objects()
method returns an iterator overs the objects.- Returns
An iterator over the objects
- Return type
-
abstract
attributes
() → Iterator[Any]¶ The
attributes()
method returns an iterator overs the attributes.- Returns
An iterator over the attributes
- Return type
-
abstract
-
class
galactic.algebras.context.
ContextRenderer
¶ Bases:
object
The
ContextRenderer
class is used to render a context for jupyter notebook.