Network data structures for dynamic event-based relational data with an emphasis on fast temporal queries