Skip to content

Add networkx's node_list option to adjacency_matrix #1411

@michaelweinold

Description

@michaelweinold

What is the expected enhancement?

In NetworkX, I can specify the column/row order of the adjacency matrix through a list of nodes node_list passed to the adjacency_matrix() function. The rustworkx adjacency_matrix() function currently has no such functionality.

This would be tremendously helpful in applications where I have to convert the graph to a matrix for further computation - and must therefore be certain of matrix column/row ordering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions