Skip to content

Format of edge and node weights? #4

@ylhsieh

Description

@ylhsieh

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions