Skip to main content

Crate oxgraph_topology

Crate oxgraph_topology 

Source
Expand description

Storage-agnostic traits for discrete topology views.

oxgraph-topology defines the minimal vocabulary shared by graph, hypergraph, snapshot, and layout crates. It does not define concrete node, edge, vertex, hyperedge, incidence, storage, or role types. Implementations provide those through associated types.

This crate defines read-view capabilities. Mutation belongs in explicit capability traits that define identity stability, deletion, compaction, and stale-handle semantics.

A topology view is any value that exposes topology through these traits. The view decides its own boundary: an entire snapshot, one layout section, a generated projection, a page-sized window, or an overlay can all be views if they provide the requested capabilities.

Traits§

CanonicalElementIdentity
Optional local-to-canonical element identity capability.
CanonicalIncidenceIdentity
Optional local-to-canonical incidence identity capability.
CanonicalRelationIdentity
Optional local-to-canonical relation identity capability.
ContainsElement
Element-ID containment capability for a topology view.
ContainsIncidence
Incidence-ID containment capability for an incidence-capable topology view.
ContainsRelation
Relation-ID containment capability for a topology view.
ElementIncidenceCount
Exact element-incidence count capability.
ElementIncidences
Capability for traversing incidences attached to an element.
ElementIndex
Dense element-index capability for topology views.
ElementPredecessors
Capability for expanding an element to its directed predecessor elements.
ElementSuccessors
Capability for expanding an element to its directed successor elements.
ElementWeight
Optional total weight capability for topology elements.
IncidenceBase
Incidence identity and role vocabulary for topology views with incidences.
IncidenceCounts
Count capability for incidence-capable topology views.
IncidenceElement
Capability for resolving the element side of an incidence.
IncidenceIndex
Dense incidence-index capability for topology views.
IncidenceRelation
Capability for resolving the relation side of an incidence.
IncidenceRole
Capability for resolving a role attached to an incidence.
IncidenceView
Convenience trait for views that can resolve complete incidence records.
IncidenceWeight
Optional total weight capability for topology incidences.
LocalElementIdentity
Optional canonical-to-local element identity capability.
LocalIncidenceIdentity
Optional canonical-to-local incidence identity capability.
LocalRelationIdentity
Optional canonical-to-local relation identity capability.
RelationIncidenceCount
Exact relation-incidence count capability.
RelationIncidences
Capability for traversing incidences attached to a relation.
RelationIndex
Dense relation-index capability for topology views.
RelationWeight
Optional total weight capability for topology relations.
TopologyBase
Common element and relation identity vocabulary for a topology view.
TopologyCounts
Count capability for a topology view.
TopologyId
Marker trait for compact topology identity handles.

Type Aliases§

ElementId
Substrate-neutral alias for a topology view’s element ID type.
RelationId
Substrate-neutral alias for a topology view’s relation ID type.