neuralib.sqlp.dot.generate_dot

neuralib.sqlp.dot.generate_dot(db: Database, *, graph: dict[str, Any] = None, node: dict[str, Any] = None, edge: dict[str, Any] = None) str[source]
neuralib.sqlp.dot.generate_dot(db: Database, file: str | Path, *, graph: dict[str, Any] = None, node: dict[str, Any] = None, edge: dict[str, Any] = None) None
neuralib.sqlp.dot.generate_dot(db: Database, file: IO, *, graph: dict[str, Any] = None, node: dict[str, Any] = None, edge: dict[str, Any] = None) None
Parameters:
  • db

  • file – io, or an output file path which support ‘.puml’ file and ‘.png’ file (required graphivz).

  • graph – graph attributes

  • node – node attributes

  • edge – edge attributes

Returns:

Raises:

FileNotFoundError – Check if graphivz already installed and add to system PATH