Thanks for the hint, I tried that but it is the same runtime as on the filtered graph.
Best, Philipp
On 27.07.2016 17:16, Tiago de Paula Peixoto wrote:
On 27.07.2016 17:06, Philipp Singer wrote:g = gt.price_network(10000,10,directed=False) %time gt.eigenvector(g) def node_sample(g, g_vertices, n_samples): return random.sample(g_vertices, n_samples) sample = node_sample(g, [x for x in g.vertices()], 1000) vfilt = g.new_vertex_property('bool') for s in sample: vfilt[s] = True g_sample = gt.GraphView(g, vfilt=vfilt) %time gt.eigenvector(g_sample)If you want to check if the difference is due to graph filtering, you can compare with: u = gt.Graph(g_sample, prune=True) gt.eigenvector(u) Best, Tiago
_______________________________________________ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool
_______________________________________________
graph-tool mailing list
graph-tool@skewed.de
https://lists.skewed.de/mailman/listinfo/graph-tool