Skip to content

read graphs from graph6, sparse6 and digraph6 fromats #1496

Description

@IbrahimElk

What is the expected enhancement?

graph6, sgraph6 and digraph6 formats

Formal definition of these formats are available here
It would the equivalent implementation of nx.from_sparse6_bytes in networkx

def from_sparse6_bytes(string)
""" Read an undirected graph in sparse6 format from string.

Parameters: string
        Data in sparse6 format

Returns: PyGraph
""""
>>> G = rx.from_sparse6_bytes(b"A_")
<rustworkx.PyGraph object at 0x7efe8bbb2c10>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions