Example #1
0
def get_closeness_at_time(cur, userID, time):
    graph = graph2.build_graph_before_undirected(cur, time)
    return graph2.closeness(graph, userID)
Example #2
0
def get_closeness_at_time(cur, userID, time):
    graph = graph2.build_graph_before_undirected(cur, time)
    return graph2.closeness(graph, userID)
Example #3
0
def get_betweenness_at_time(cur, userID, time):
    graph = graph2.build_graph_before_undirected(cur, time)
    betweenness = graph2.betweenness(graph)
    return betweenness[userID]
Example #4
0
def get_betweenness_at_time(cur, userID, time):
    graph = graph2.build_graph_before_undirected(cur, time)
    betweenness = graph2.betweenness(graph)
    return betweenness[userID]