Skip to content

Unconnected graphs are not drawn #3

@teake

Description

@teake

Hi,

Thanks for the nice library! I did find one issue though: graphs with only unconnected vertices are not drawn. The simplest case (below) yields ''. Graphs with both connected and unconnected vertices do get drawn ok though.

import networkx as nx
from asciinet import graph_to_ascii

G = nx.Graph()
G.add_node(1)
assert graph_to_ascii(G) != ''

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