def get_indegree_at_time(cur, userID, time): graph = graph2.build_graph_before(cur, time) indegrees = graph2.indegree(graph) return indegrees[userID]
def get_auth_at_time(cur, userID, time): graph = graph2.build_graph_before(cur, time) ranks = graph2.hits(graph) return ranks[userID][1]
def get_pagerank_at_time(cur, userID, time): graph = graph2.build_graph_before(cur, time) ranks = graph2.pagerank(graph) return ranks[userID]
def get_indegree_at_time(cur, userID, time): graph = graph2.build_graph_before(cur, time) indegrees = graph2.indegree(graph) return indegrees[userID]
def get_auth_at_time(cur, userID, time): graph = graph2.build_graph_before(cur, time) ranks = graph2.hits(graph) return ranks[userID][1]
def get_pagerank_at_time(cur, userID, time): graph = graph2.build_graph_before(cur, time) ranks = graph2.pagerank(graph) return ranks[userID]