ExposoGraph.graph_filters¶
Helpers for deriving validated-only or exploratory-only graph views without mutating the stored graph.
The filtering helpers return detached Node and Edge copies, so editing
the filtered result does not mutate the source KnowledgeGraph or the
backing engine state.
Helpers for filtering graphs into validated or exploratory views.
- ExposoGraph.graph_filters.graph_visibility_label(visibility)[source]¶
Return a human-readable label for a graph visibility setting.
- Parameters:
visibility (GraphVisibility | str)
- Return type:
- ExposoGraph.graph_filters.filter_knowledge_graph(graph, visibility=GraphVisibility.ALL)[source]¶
Return a filtered graph view without mutating the source graph.
- Parameters:
graph (KnowledgeGraph)
visibility (GraphVisibility | str)
- Return type:
- ExposoGraph.graph_filters.filtered_engine(engine, visibility=GraphVisibility.ALL)[source]¶
Return a temporary GraphEngine with only the selected visible subgraph.
- Parameters:
engine (GraphEngine)
visibility (GraphVisibility | str)
- Return type: