decomp.corpus.corpus¶
Abstract base class for graph corpus readers.
This module provides the foundational Corpus class for managing collections
of graphs in the decomp framework. The Corpus class serves as an abstract base that
concrete corpus implementations extend to handle specific graph formats.
The module defines a generic corpus container that: - Accepts raw graphs in an input format - Transforms them to an output format via an abstract graph builder - Provides dictionary-like access to the processed graphs - Handles errors during graph construction gracefully
Type Variables¶
- InGraph
The input graph type that will be processed by the corpus reader.
- OutGraph
The output graph type produced after processing.
Type Aliases¶
- GraphDict[T]
Generic dictionary mapping hashable identifiers to graphs of type T.
Classes¶
- Corpus
Abstract base class for graph corpus containers with generic type parameters for input and output graph formats.