Esempio n. 1
0
def get_indegree_at_time(cur, userID, time):
    graph = graph2.build_graph_before(cur, time)
    indegrees = graph2.indegree(graph)
    return indegrees[userID]
Esempio n. 2
0
def get_auth_at_time(cur, userID, time):
    graph = graph2.build_graph_before(cur, time)
    ranks = graph2.hits(graph)
    return ranks[userID][1]
Esempio n. 3
0
def get_pagerank_at_time(cur, userID, time):
    graph = graph2.build_graph_before(cur, time)
    ranks = graph2.pagerank(graph)
    return ranks[userID]
Esempio n. 4
0
def get_indegree_at_time(cur, userID, time):
    graph = graph2.build_graph_before(cur, time)
    indegrees = graph2.indegree(graph)
    return indegrees[userID]
Esempio n. 5
0
def get_auth_at_time(cur, userID, time):
    graph = graph2.build_graph_before(cur, time)
    ranks = graph2.hits(graph)
    return ranks[userID][1]
Esempio n. 6
0
def get_pagerank_at_time(cur, userID, time):
    graph = graph2.build_graph_before(cur, time)
    ranks = graph2.pagerank(graph)
    return ranks[userID]