Models and Algorithms for Persistent Queries over Streaming Graphs