Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit a41ed7a

Browse files
committed
kcfg/show: return Digraph directly from KCFGShow.dot
1 parent 428c4f5 commit a41ed7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyk/kcfg/show.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def to_rule(edge: KCFG.Edge, *, claim: bool = False) -> KRuleLike:
396396

397397
return res_lines
398398

399-
def dot(self, kcfg: KCFG, node_printer: Callable[[CTerm], Iterable[str]] | None = None) -> str:
399+
def dot(self, kcfg: KCFG, node_printer: Callable[[CTerm], Iterable[str]] | None = None) -> Digraph:
400400
def _short_label(label: str) -> str:
401401
return '\n'.join(
402402
[
@@ -446,7 +446,7 @@ def _short_label(label: str) -> str:
446446
attrs = {'class': 'target', 'style': 'solid'}
447447
graph.edge(tail_name=node.id, head_name=target_id, label=' false', **attrs)
448448

449-
return graph.source
449+
return graph
450450

451451
def dump(
452452
self,

0 commit comments

Comments
 (0)