(path: ScenePath)
| 35 | |
| 36 | /** Die Knoten eines Pfades, in der Reihenfolge, in der er sie betritt. */ |
| 37 | export function pathNodeIds(path: ScenePath): number[] { |
| 38 | const ids = new Set<number>(); |
| 39 | for (const step of path.steps) { ids.add(step.from); ids.add(step.to); } |
| 40 | return [...ids]; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Welchen Texten jedes Kantenlabel der Szene ausweicht: den Namen des Pfades, |
no outgoing calls
no test coverage detected