Exemplo 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]
Exemplo 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]
Exemplo 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]
Exemplo 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]
Exemplo 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]
Exemplo 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]