Skip to content

graph cause asciidag break #6

Description

@luluman

When I run this code, an error occurred.

from asciidag.graph import Graph
from asciidag.node import Node

graph = Graph()

nodeA = Node('A', parents=[])
nodeB = Node('B', parents=[])
nodeC = Node('C', parents=[])
nodeD = Node('D', parents=[nodeA, nodeB, nodeC])

tips = [
    Node('E',
         parents=[
             Node('F', parents=[nodeC, nodeD]),
             Node('G', parents=[Node('H', parents=[nodeD]), nodeD])
         ])
]

graph.show_nodes(tips)

This is the log.

WeChat573717b395e1376afa67889a9e41d931

Sometimes "asciidag" may succeed, which will print the right graph.

WeChat58d8bdeda6a15fbbad1fdaea2fcc4959

I have tested on python3.5.2, and it will pass when first run but failed afterward. I never success on python 3.9.2.

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