mode.utils.types.graphs
Type classes for mode.utils.graphs.
-
class
mode.utils.types.graphs.GraphFormatterT(root: Any = None, type: str = None, id: str = None, indent: int = 0, inw: str = ' ', **scheme: Any)[source]
Type class for graph formatters.
-
abstract
attr(name: str, value: Any) → str[source]
-
abstract
attrs(d: Mapping = None, scheme: Mapping = None) → str[source]
-
abstract
head(**attrs: Any) → str[source]
-
abstract
tail() → str[source]
-
abstract
label(obj: _T) → str[source]
-
abstract
node(obj: _T, **attrs: Any) → str[source]
-
abstract
terminal_node(obj: _T, **attrs: Any) → str[source]
-
abstract
edge(a: _T, b: _T, **attrs: Any) → str[source]
-
abstract
FMT(fmt: str, *args: Any, **kwargs: Any) → str[source]
-
abstract
draw_edge(a: _T, b: _T, scheme: Mapping = None, attrs: Mapping = None) → str[source]
-
abstract
draw_node(obj: _T, scheme: Mapping = None, attrs: Mapping = None) → str[source]
-
class
mode.utils.types.graphs.DependencyGraphT(it: Iterable[_T] = None, formatter: mode.utils.types.graphs.GraphFormatterT[_T] = None)[source]
Type class for dependency graphs.
-
abstract
add_arc(obj: _T) → None[source]
-
abstract
add_edge(A: _T, B: _T) → None[source]
-
abstract
connect(graph: mode.utils.types.graphs.DependencyGraphT) → None[source]
-
abstract
topsort() → Sequence[source]
-
abstract
valency_of(obj: _T) → int[source]
-
abstract
update(it: Iterable) → None[source]
-
abstract
edges() → Iterable[source]
-
abstract
to_dot(fh: IO, *, formatter: mode.utils.types.graphs.GraphFormatterT[_T] = None) → None[source]