Format of edge and node weights?
ylhsieh opened this issue · 1 comments
ylhsieh commented
Sorry I could not find any docs that can solve my question. In what format should I provide edge and node weights to part_gragh()
? Some example codes below.
adjacency = {\
0:[1,2],
1:[0],
2:[0]}
cuts, part_vert = part_graph(2, adjacency)
Is it correct to set edgeweights={2,1,3,1}
according to the order of appearance of the edges? Thanks!