typewalk_tprivate
The working space of one thread, sized once, for finding what a graph holds.
Components
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| from | integer | allocatabledimension(:) | where each edge starts | |
| levels | integer | allocatabledimension(:) | the hops to each of | |
| marked | integer | allocatabledimension(:) | when each entity was last reached | |
| places | integer | allocatabledimension(:) | the number of each entity in the graph | |
| queue | integer | allocatabledimension(:) | the entities reached | |
| stamp | integer | 0 | a number new for each graph | |
| to | integer | allocatabledimension(:) | where each edge ends |
Source
Show the code
type :: walk_t
!! The working space of one thread, sized once, for finding what a graph holds.
integer, allocatable :: marked(:) !! when each entity was last reached
integer, allocatable :: places(:) !! the number of each entity in the graph
integer, allocatable :: queue(:) !! the entities reached
integer, allocatable :: levels(:) !! the hops to each of `queue`
integer, allocatable :: from(:) !! where each edge starts
integer, allocatable :: to(:) !! where each edge ends
integer :: stamp = 0 !! a number new for each graph
end type walk_t