Implement a function that calculates the minimum travel times between various nodes in a graph, considering specific road conditions. The function should identify connected components in the graph based on specific criteria and then compute the shortest travel times from a start node to all other nodes.
n (1 ≤ n ≤ 10^5): An integer representing the number of nodes in the graph.
m (1 ≤ m ≤ 2 * 10^5): An integer representing the number of roads (edges) in the graph.
a (1 ≤ a ≤ 10^9): An integer that is used to filter roads during component identification.
b (1 ≤ b ≤ 10^9): An integer that is used to filter certain roads as 'useless.'
roads: A list of m tuples, where each tuple (u, v, w) represents a road between nodes u and v with weight (or distance) w. Here, u and v are integers representing node indices (1-indexed).
Output:
A list of integers, where the i-th integer represents the minimum travel time from node 1 to node i (0-indexed) in the graph. If a node is unreachable, it should return float('inf').
Implementation Guidelines
Implement the solution in a file called /app/solution.py.
Ensure that the code is efficient and handles edge cases appropriately, such as disconnected graphs or when no roads are available.
Include meaningful comments and docstring for clarity.
Example Usage
python
result = calculate_minimum_travel_times(5, 6, 2, 2, [(1, 2, 1), (1, 3, 2), (2, 3, 1), (2, 4, 5), (3, 5, 1), (4, 5, 10)])
print(result) # Output expected is a list of minimum travel times from node 1 to all other nodes.