Skip to content

trudag.dotstop.core.graph.graph_factory

build_trustable_graph

build_trustable_graph(
    graph_source: Path | str | None = None,
    items_source: Path | list[Item] | None = None,
    trustable_ignore: Path | None = None,
) -> TrustableGraph

Builds a TrustableGraph from given sources.

Parameters:

Name Type Description Default
graph_source Path | str | None

DOT file path or string, or None for an empty graph.

None
items_source Path | list[Item] | None

Markdown directory path, raw items list, or None for an empty list.

None
trustable_ignore Path | None)

trustable ignore file like gitignore without globs feature.

None

Returns:

Name Type Description
TrustableGraph TrustableGraph

Complete TrustableGraph object.