#![no_std]
#[cfg(kani)]
extern crate kani;
#[cfg(feature = "layout")]
pub mod layout {
pub use oxgraph_layout_util::{
Axis, EdgeAxis, HyperedgeAxis, IdSlice, IncidenceAxis, LayoutIndex, LayoutSnapshotWord,
LayoutWord, LocalId, NodeAxis, SnapshotWidth, VertexAxis, ZerocopyWord, build, integrity,
};
}
#[cfg(feature = "topology")]
pub mod topology {
pub use oxgraph_topology::{
CanonicalElementIdentity, CanonicalIncidenceIdentity, CanonicalRelationIdentity,
ContainsElement, ContainsIncidence, ContainsRelation, DenseElementIndex,
DenseIncidenceIndex, DenseRelationIndex, ElementId, ElementIncidenceCount,
ElementIncidences, ElementPredecessors, ElementSuccessors, ElementWeight, IncidenceBase,
IncidenceCounts, IncidenceElement, IncidenceRelation, IncidenceRole, IncidenceView,
IncidenceWeight, LocalElementIdentity, LocalIncidenceIdentity, LocalRelationIdentity,
RelationId, RelationIncidenceCount, RelationIncidences, RelationWeight, TopologyBase,
TopologyCounts, TopologyId,
};
}
#[cfg(feature = "graph")]
pub mod graph {
pub use oxgraph_graph::{
ContainsEdge, ContainsEndpoint, ContainsNode, DenseEdgeIndex, DenseEndpointIndex,
DenseNodeIndex, DirectedGraph, EdgeEndpointGraph, EdgeId, EdgeSourceGraph, EdgeTargetGraph,
EndpointId, EndpointRole, ForwardGraph, GraphBase, GraphCounts, IncomingEdgeCount,
IncomingGraph, IncomingNeighborsGraph, NodeId, OutgoingEdgeCount, OutgoingGraph,
OutgoingNeighborsGraph, ReverseGraph,
};
}
#[cfg(feature = "hyper")]
pub mod hyper {
pub use oxgraph_hyper::{
ContainsHyperedge, ContainsParticipant, ContainsVertex, DenseHyperedgeIndex,
DenseParticipantIndex, DenseVertexIndex, DirectedHyperedgeIncidences,
DirectedHyperedgeParticipants, DirectedHypergraph, DirectedVertexHyperedges,
DirectedVertexPredecessors, DirectedVertexSuccessors, HyperedgeId, HyperedgeIncidences,
HyperedgeParticipantCount, HyperedgeParticipants, Hypergraph, HypergraphBase,
HypergraphCounts, IncidentHyperedgeCount, IncidentHyperedges, ParticipantBase,
ParticipantCounts, ParticipantHyperedge, ParticipantId, ParticipantRole, ParticipantRoleOf,
ParticipantVertex, VertexId, VertexIncidences,
};
}
#[cfg(feature = "csc")]
pub mod csc {
pub use oxgraph_csc::{CscNodeId, CscSnapshotError, CscSnapshotGraph};
}
#[cfg(feature = "csr")]
pub mod csr {
pub use oxgraph_csr::{
CsrEdgeId, CsrError, CsrGraph, CsrNativeGraph, CsrNodeId, CsrOutEdges, CsrSnapshotError,
CsrSnapshotGraph, CsrSnapshotIndex, SNAPSHOT_CSR_SECTION_VERSION,
SNAPSHOT_KIND_CSR_OFFSETS_BASE, SNAPSHOT_KIND_CSR_TARGETS_BASE,
};
}
#[cfg(feature = "hyper-bcsr")]
pub mod hyper_bcsr {
pub use oxgraph_hyper_bcsr::{
BcsrChainedHyperedges, BcsrChainedParticipants, BcsrChainedRelationIncidences,
BcsrElementIncidences, BcsrError, BcsrHyperedgeId, BcsrHyperedgeSlice, BcsrHypergraph,
BcsrNativeHypergraph, BcsrParticipantId, BcsrParticipantSlice, BcsrPredecessorVertices,
BcsrRole, BcsrRoleSide, BcsrSection, BcsrSections, BcsrSnapshotError,
BcsrSnapshotHypergraph, BcsrSnapshotIndex, BcsrSuccessorVertices, BcsrValidation,
BcsrVertexId, BcsrVertexSlice, BcsrWords, LeWords, NativeWords,
SNAPSHOT_KIND_BCSR_HEAD_OFFSETS_BASE, SNAPSHOT_KIND_BCSR_HEAD_PARTICIPANTS_BASE,
SNAPSHOT_KIND_BCSR_TAIL_OFFSETS_BASE, SNAPSHOT_KIND_BCSR_TAIL_PARTICIPANTS_BASE,
SNAPSHOT_KIND_BCSR_VERTEX_INCOMING_HYPEREDGES_BASE,
SNAPSHOT_KIND_BCSR_VERTEX_INCOMING_OFFSETS_BASE,
SNAPSHOT_KIND_BCSR_VERTEX_OUTGOING_HYPEREDGES_BASE,
SNAPSHOT_KIND_BCSR_VERTEX_OUTGOING_OFFSETS_BASE,
};
}
#[cfg(feature = "snapshot")]
pub mod snapshot {
pub use oxgraph_snapshot::{
Checksum32, FORMAT_MAGIC, FORMAT_MAJOR, FORMAT_MINOR, HEADER_SIZE, HeaderOnlySnapshot,
MAX_ALIGNMENT_LOG2, MAX_SECTION_COUNT, MAX_SUPPORTED_MINOR, PendingSection, PlanError,
SECTION_ENTRY_SIZE, Section, SectionIter, SectionViewError, Snapshot, SnapshotError,
SnapshotPlan, ValidationLevel,
};
#[cfg(feature = "snapshot-alloc")]
pub use oxgraph_snapshot::{SectionSink, SnapshotWriter};
}
#[cfg(feature = "algo")]
pub mod algo {
pub use oxgraph_algo::{
BfsBounds, BfsEpochScratch, BfsError, BfsVisitor, BreadthFirstSearchEpochScratch,
BreadthFirstSearchScratch, HyperWeighted, HypergraphOutgoingDistribution,
HypergraphPageRankScratch, IntoPageRankScalar, OutgoingDistribution, PageRankConfig,
PageRankError, PageRankHypergraph, PageRankReport, PageRankScalar, PageRankScratch,
ReverseBreadthFirstSearchEpochScratch, ReverseBreadthFirstSearchScratch, Uniform, Weighted,
breadth_first_search_bounded, breadth_first_search_bounded_both,
breadth_first_search_with_epoch_scratch, breadth_first_search_with_scratch,
pagerank_graph_with_scratch, pagerank_hypergraph_with_scratch,
reverse_breadth_first_search_bounded, reverse_breadth_first_search_with_epoch_scratch,
reverse_breadth_first_search_with_scratch,
};
#[cfg(feature = "algo-alloc")]
pub use oxgraph_algo::{
BfsWorkspace, BreadthFirstSearch, BreadthFirstSearchWorkspace, GenericBreadthFirstSearch,
GenericReverseBreadthFirstSearch, HypergraphPageRankWorkspace, LongestPathError,
PageRankWorkspace, ReverseBreadthFirstSearch, ReverseBreadthFirstSearchWorkspace,
ToposortError, breadth_first_search, breadth_first_search_generic,
breadth_first_search_with_workspace, connected_components, longest_path_dag,
pagerank_graph, pagerank_graph_with_workspace, pagerank_hypergraph,
pagerank_hypergraph_with_workspace, reverse_breadth_first_search,
reverse_breadth_first_search_generic, reverse_breadth_first_search_with_workspace,
shortest_path_lengths, strongly_connected_components, topological_sort,
};
#[cfg(feature = "algo-std")]
pub use oxgraph_algo::{
HashBreadthFirstSearch, HashReverseBreadthFirstSearch, breadth_first_search_generic_hash,
reverse_breadth_first_search_generic_hash,
};
}
#[cfg(feature = "property-arrow")]
pub mod property {
pub use oxgraph_property::{
DenseWeights, ElementAxis, EncodedPropertySnapshot, GraphPropertyLayers,
HyperPropertyLayers, IdFamily, IdentityMapMode, IdentityModeRecord, IdentityModeSummary,
IdentitySnapshotSummary, IncidenceAxis, LayerId, LayerName, LayerRole, MissingPolicy,
PropertyAxis, PropertyError, PropertyIndex, PropertyLayer, PropertyLayerData,
PropertyLayerDescriptor, PropertySnapshotMetaWord, PropertySnapshotRecord,
PropertySnapshotSummary, RelationAxis, SNAPSHOT_KIND_ELEMENT_IDENTITY_MAP_BASE,
SNAPSHOT_KIND_IDENTITY_MODES_BASE, SNAPSHOT_KIND_INCIDENCE_IDENTITY_MAP_BASE,
SNAPSHOT_KIND_PROPERTY_DATA_BASE, SNAPSHOT_KIND_PROPERTY_DESCRIPTORS_BASE,
SNAPSHOT_KIND_RELATION_IDENTITY_MAP_BASE, SNAPSHOT_PROPERTY_VERSION, SparseWeights,
StorageMode, encode_graph_property_snapshot, encode_hyper_property_snapshot,
encode_property_snapshot, rekey_layer_to_local, validate_identity_snapshot,
validate_property_sections, validate_property_snapshot, validate_unique_layer_ids,
validate_unique_names,
};
}
#[cfg(feature = "db")]
pub mod db {
pub use oxgraph_db::*;
}
#[cfg(feature = "graph-build")]
pub mod graph_build {
pub use oxgraph_csr::build::{
FrozenGraph, FrozenOutEdges, FrozenSuccessors, FrozenWeightedGraph, GraphBuildError,
GraphBuilder, GraphEdgeId, GraphNodeId, WeightedGraphBuilder, export_csr_snapshot,
export_weighted_csr_snapshot,
};
#[cfg(feature = "graph-property-arrow")]
pub use oxgraph_csr::build::{
export_csr_snapshot_with_properties, export_weighted_csr_snapshot_with_properties,
};
}
#[cfg(feature = "hyper-build")]
pub mod hyper_build {
pub use oxgraph_hyper_bcsr::build::{
FrozenHypergraph, FrozenWeightedHypergraph, HyperBuildError, HyperParticipantId,
HyperParticipantRole, HyperVertexId, HyperedgeId, HypergraphBuilder,
WeightedHypergraphBuilder, export_bcsr_snapshot, export_weighted_bcsr_snapshot,
};
#[cfg(feature = "hyper-property-arrow")]
pub use oxgraph_hyper_bcsr::build::{
export_bcsr_snapshot_with_properties, export_weighted_bcsr_snapshot_with_properties,
};
}
#[cfg(feature = "postgres")]
pub mod postgres {
pub use oxgraph_postgres::{
BuildError, BuildEstimate, Catalog, CatalogError, Config, ConfigError,
DualTopologySnapshot, EdgeId, EdgeRow, Engine, EngineBuilder, EngineStatus, FilterColumn,
ForwardCsr, GraphRole, GraphTopology, InboundCsc, NodeKey, OverlayEdge, OverlayState,
PostgresGraphError, PostgresMetadata, QueryError, QueryFreshness, RegisteredEdge,
RegisteredTable, SNAPSHOT_KIND_PG_CATALOG, SNAPSHOT_KIND_PG_INBOUND_OFFSETS_BASE,
SNAPSHOT_KIND_PG_INBOUND_OFFSETS_U32, SNAPSHOT_KIND_PG_INBOUND_TARGETS_BASE,
SNAPSHOT_KIND_PG_INBOUND_TARGETS_U32, SNAPSHOT_KIND_PG_METADATA, SearchPredicate,
SnapshotRebuild, SyncAction, SyncActionCodec, SyncError, SyncHealth, SyncRow, TableId,
TraversalDirection, TraverseLimits, estimate_build,
};
}