Skip to main content

Crate oxgraph_hyper

Crate oxgraph_hyper 

Source
Expand description

Storage-agnostic traits for hypergraph views.

oxgraph-hyper is the hypergraph specialization above oxgraph-topology. Use it to write generic hypergraph consumers over vertex, hyperedge, participant, incident-hyperedge, and directed participant-set vocabulary.

Hypergraph views use topology elements as vertices, topology relations as hyperedges, and topology incidences as participant records. Concrete layouts, snapshots, builders, mutation systems, payloads, and algorithms belong in higher-level crates.

§Performance contract

Most of the traits and aliases in this crate are hypergraph-vocabulary shadows of topology traits. Unless a specific item documents otherwise, every method, iterator, and alias inherits its performance contract from the underlying topology trait it shadows: O(1) for accessors, O(1) to construct an iterator plus O(k) to yield k items, and perf: unspecified for capability-bundle marker traits and blanket impls.

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.
ContainsHyperedge
Hyperedge-ID containment capability for hypergraph views.
ContainsIncidence
Incidence-ID containment capability for an incidence-capable topology view.
ContainsParticipant
Participant-ID containment capability for hypergraph views with incidences.
ContainsRelation
Relation-ID containment capability for a topology view.
ContainsVertex
Vertex-ID containment capability for hypergraph views.
DirectedHyperedgeIncidences
Capability for traversing directed participant incidence IDs.
DirectedHyperedgeParticipants
Capability for traversing directed hyperedge participant sets.
DirectedHypergraph
Convenience marker for complete directed hypergraph traversal.
DirectedVertexHyperedges
Capability for traversing source/target hyperedges incident to a vertex.
DirectedVertexPredecessors
Capability for expanding a directed hypergraph vertex to predecessor vertices.
DirectedVertexSuccessors
Capability for expanding a directed hypergraph vertex to successor vertices.
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.
HyperedgeIncidences
Capability for traversing participant records attached to one hyperedge.
HyperedgeIndex
Dense hyperedge-index capability for hypergraph views.
HyperedgeParticipantCount
Exact hyperedge-participant count capability.
HyperedgeParticipants
Capability for traversing vertices participating in one hyperedge.
Hypergraph
Convenience marker bundling hyperedge participants and incident hyperedges.
HypergraphBase
Base capability for hypergraph views over topology storage.
HypergraphCounts
Count capability for a hypergraph view.
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.
IncidenceWeight
Optional total weight capability for topology incidences.
IncidentHyperedgeCount
Exact incident-hyperedge count capability.
IncidentHyperedges
Capability for traversing hyperedges incident to one vertex.
LocalElementIdentity
Optional canonical-to-local element identity capability.
LocalIncidenceIdentity
Optional canonical-to-local incidence identity capability.
LocalRelationIdentity
Optional canonical-to-local relation identity capability.
ParticipantBase
Base capability for hypergraph views that expose participant records.
ParticipantCounts
Participant-record count capability for hypergraph views.
ParticipantHyperedge
Capability for resolving the hyperedge that carries a participant record.
ParticipantIndex
Dense participant-index capability for hypergraph views with incidences.
ParticipantRoleOf
Capability for resolving the role recorded for a participant.
ParticipantVertex
Capability for resolving the vertex carried by a participant record.
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.
VertexIncidences
Capability for traversing participant records attached to one vertex.
VertexIndex
Dense vertex-index capability for hypergraph views.

Type Aliases§

HyperedgeId
Hypergraph-facing alias for a topology relation ID (hyperedge).
ParticipantId
Hypergraph-facing alias for a topology incidence ID (participant record).
ParticipantRole
Hypergraph-facing alias for a topology incidence role used to distinguish source, target, input, output, or implementation-defined participant categories on directed or role-aware hypergraph views.
VertexId
Hypergraph-facing alias for a topology element ID (vertex).