Getting Property Out of a Variable in Python Gremlin Query
I've been working on attempting to find a performance way to route from point A to point B.
Right now my schema is as follows
Vertex Labels:
The problem is the where, see below for more context.
Right now my schema is as follows
Vertex Labels:
- Airport:
- Properties: airport: Airport code.
- Day:
- Properties: Datestamp representing the day.
- has_flights_on:
- Connects Airport to Day.
- Indicates an airport has flights on a specific day.
- flight:
- Connects Day to Airport (destination).
- Properties: flight_id, origin, destination, start_timestamp, end_timestamp, capacity, tail_number, equipment_type.
- Airport vertex for each airport.
- Day vertex for specific days connected to airports with flights.
- has_flights_on edges connect Airport to Day.
- flight edges connect Day to Airport, representing flights.
- Airport (JFK) -> has_flights_on -> Day (2023-08-03) -> flight -> Airport (LAX)
- Indicates a flight from JFK to LAX on August 3, 2023.
The problem is the where, see below for more context.