inducer / pymetis

A Python wrapper around Metis, a graph partitioning package
http://mathema.tician.de/software/pymetis
Other
164 stars 32 forks source link

Format of edge and node weights? #4

Closed ylhsieh closed 10 years ago

ylhsieh commented 10 years ago

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!

inducer commented 10 years ago

Improved in 58695caff1.