Skip to main content

Module hyperedge

Module hyperedge 

Source
Expand description

Hyperedge (higher-order relation) storage module.

Provides storage and querying for multi-entity relationships (hyperedges). A hyperedge connects 2 or more entities in a single relation.

Structs§

HigherOrderNeighbor
A higher-order neighbor: an entity connected through a hyperedge.
HigherOrderPath
A higher-order path between two entities.
HigherOrderPathStep
A step in a higher-order path.
Hyperedge
A hyperedge representing a higher-order relation among multiple entities.

Functions§

delete_hyperedge
Delete a hyperedge by ID.
get_entity_hyperedges
Get all hyperedges that an entity participates in.
get_higher_order_neighbors
Get higher-order neighbors of an entity (entities connected through hyperedges).
get_hyperedge
Get a hyperedge by ID.
higher_order_bfs
Higher-order BFS traversal through hyperedges.
higher_order_shortest_path
Find shortest path between two entities through hyperedges.
hyperedge_degree
Compute hyperedge degree centrality for an entity.
hypergraph_entity_pagerank
Compute entity-level hypergraph PageRank using Zhou formula.
insert_hyperedge
Insert a hyperedge into the database.
list_hyperedges
List hyperedges with optional filtering.
load_all_hyperedges
Load all hyperedges from the database.
update_hyperedge
Update a hyperedge.