mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-24 03:47:57 +01:00
Add ForwardPointer type
This commit is contained in:
parent
ec9753ad71
commit
db89676784
1 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
// SPDX-FileCopyrightText: 2023 Heiko Schaefer <heiko@schaefer.name>
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package org.pgpainless.wot.dijkstra
|
||||
|
||||
import org.pgpainless.wot.network.EdgeComponent
|
||||
|
||||
/**
|
||||
* Pointer type for Dijsktra's algorithm.
|
||||
* This encapsulates the outgoing edge (there may be multiple edges between a source and a target node).
|
||||
*/
|
||||
internal data class ForwardPointer(
|
||||
// If null, then the node is itself the target.
|
||||
val next: EdgeComponent?
|
||||
)
|
Loading…
Reference in a new issue