def stop_to_stop_networks_by_type(gtfs):
route_type_to_network = dict()<EOL>for route_type in route_types.ALL_ROUTE_TYPES:<EOL><INDENT>if route_type == route_types.WALK:<EOL><INDENT>net = walk_transfer_stop_to_stop_network(gtfs)<EOL><DEDENT>else:<EOL><INDENT>net = stop_to_stop_network_for_route_type(gtfs, route_type)<EOL><DEDENT>route_type_to_network[route_type] = net<EOL><DEDENT>assert len(route_type_to_network) == len(route_types.ALL_ROUTE_TYPES)<EOL>return route_type_to_network<EOL>
Compute stop-to-stop networks for all travel modes (route_types).

Parameters
----------
gtfs: gtfspy.GTFS

Returns
-------
dict: dict[int, networkx.DiGraph]
    keys should be one of route_types.ALL_ROUTE_TYPES (i.e. GTFS route_types)