Skip to main content
. 2022 May 26;17:12. doi: 10.1186/s13015-022-00217-9

Fig. 3.

Fig. 3

Efficient heuristic for shortest source-sink hyperpaths. Given source s, sink t, and edge weights ω, function ShortestHyperpathHeuristic finds an s,t-hyperpath in hypergraph G, attempting to minimize its length. If no s,t-hyperpath exists, the empty path is returned. For doubly-reachable hyperedges e, the heuristic maintains fields e.length (the total weight of the shortest hyperpath found to e), and e.inedges (the subset of edges f with head(f) touching tail(e) where f.length is known), which are used in RecoverShortHyperpath to recover a short hyperpath to e