Is it correct to use an edge property map of a graph with a graph view based
on that graph? Specifically, I have an edge property of edge weights. I then
filter the graph to the largest connected component, and then I want to run
nested blockmodel on that largest connected component with the corresponding
edge weights.
The exact code I want to use is below. Is this correct, or do I need to also
filter weight_prop so that it only has information about edges not filtered
in the GraphView GL?
Thank you so much!
EDGES, WEIGHT_V = get_edge_set(ADJ, WEIGHTS, N, K)
G = gt.Graph()
G.add_vertex(N)
G.add_edge_list(EDGES)
G.set_directed(False)
largest = graph_tool.topology.label_largest_component(G)
GL = gt.GraphView(G, vfilt=largest)
weight_prop = G.new_edge_property("int16_t")
weight_prop.a = WEIGHT_V
NBM = graph_tool.community.minimize_nested_blockmodel_dl(GL, verbose=True,
epsilon=E, eweight=weight_prop)
--
View this message in context:
http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Using-an-edge-property-on-GraphView-tp4025720.html
Sent from the Main discussion list for the graph-tool project mailing list
archive at Nabble.com.
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool