Skip to content

Multi-headed graphs with loops starting at first node fail to render #3536

@D0ntPanic

Description

@D0ntPanic

The following script creates a flow graph with two disjoint groups, both of them small loops:

f = FlowGraph()
a = FlowGraphNode(f)
b = FlowGraphNode(f)
f.append(a)
f.append(b)
a.add_outgoing_edge(BranchType.UnconditionalBranch, b)
b.add_outgoing_edge(BranchType.UnconditionalBranch, a)
a = FlowGraphNode(f)
b = FlowGraphNode(f)
f.append(a)
f.append(b)
a.add_outgoing_edge(BranchType.UnconditionalBranch, b)
b.add_outgoing_edge(BranchType.UnconditionalBranch, a)
bv.show_graph_report("two loops", f)

The graph shown is not rendered correctly, and the following errors are printed to the log:

Node 2 is not present in the layout data
Node 3 is not present in the layout data
Node 2 not processed in layout
Node 3 not processed in layout

Metadata

Metadata

Assignees

Labels

Component: UIIssue needs changes to the user interfaceImpact: LowIssue is a papercut or has a good, supported workaroundUI: GraphIssues with the FlowGraph class or Graph view

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions