Derived types and interfaces | |
| type | digraph |
Directed graph with fixed vertex count and efficient cycle detection Stores edges in a dense adjacency matrix slice per vertex. Only the actually used portion of each row is tracked via list_sizes. More... | |
Functions/Subroutines | |
| type(digraph) function | graph_new (vertices) |
| subroutine | graph_add_edge (this, source, destination, exists) |
| logical function | graph_has_cycle_dfs (this, start_vertex) |
| recursive logical function | dfs_recursive (this, vertex, visited, recursion_stack) |
| Internal recursive DFS worker for cycle detection. | |
| subroutine | graph_final (this) |
| Finalizer – automatically deallocate internal arrays when graph goes out of scope. | |
|
private |
|
private |
|
private |
|
private |