#!/usr/bin/env python3
"""Pack independent activation nodes into a readable grid; no graph edits."""
import os,shutil,subprocess,sys
from pathlib import Path
args=sys.argv[1:]
if any(Path(a).name=='epistemic-overview.dot' for a in args):
    args+=['-Gpack=true','-Gpackmode=array_u3']
raise SystemExit(subprocess.call([shutil.which('dot'),*args]))
