temporal
Algorithms for the analysis of time-respecting paths in temporal graphs.
temporal_shortest_paths
¶
Compute shortest time-respecting paths in a temporal graph.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
g
|
pathpyG.core.temporal_graph.TemporalGraph
|
Temporal graph to compute shortest paths on. |
required |
delta
|
int
|
Maximum time difference between events in a path. |
required |
Returns:
Type | Description |
---|---|
numpy.ndarray
|
Tuple of two numpy arrays: |
numpy.ndarray
|
|
typing.Tuple[numpy.ndarray, numpy.ndarray]
|
|