|
| 1 | +from typing import Any, List |
| 2 | + |
| 3 | +PY3: Any |
| 4 | +str_type = str |
| 5 | +GRAPH_ATTRIBUTES: Any |
| 6 | +EDGE_ATTRIBUTES: Any |
| 7 | +NODE_ATTRIBUTES: Any |
| 8 | +CLUSTER_ATTRIBUTES: Any |
| 9 | +DEFAULT_PROGRAMS: Any |
| 10 | + |
| 11 | +def is_windows() -> bool: ... |
| 12 | +def is_anaconda() -> bool: ... |
| 13 | +def get_executable_extension() -> str: ... |
| 14 | +def call_graphviz(program, arguments, working_dir, **kwargs): ... |
| 15 | + |
| 16 | +class frozendict(dict): |
| 17 | + __delitem__: Any |
| 18 | + __setitem__: Any |
| 19 | + clear: Any |
| 20 | + pop: Any |
| 21 | + popitem: Any |
| 22 | + setdefault: Any |
| 23 | + update: Any |
| 24 | + def __new__(cls, *args, **kw): ... |
| 25 | + def __init__(self, *args, **kw) -> None: ... |
| 26 | + def __hash__(self): ... |
| 27 | + |
| 28 | +dot_keywords: Any |
| 29 | +id_re_alpha_nums: Any |
| 30 | +id_re_alpha_nums_with_ports: Any |
| 31 | +id_re_num: Any |
| 32 | +id_re_with_port: Any |
| 33 | +id_re_dbl_quoted: Any |
| 34 | +id_re_html: Any |
| 35 | + |
| 36 | +def needs_quotes(s): ... |
| 37 | +def quote_if_necessary(s): ... |
| 38 | +def graph_from_dot_data(s) -> List['Dot']: ... |
| 39 | +def graph_from_dot_file(path, encoding: Any | None = ...): ... |
| 40 | +def graph_from_edges(edge_list, node_prefix: str = ..., directed: bool = ...): ... |
| 41 | +def graph_from_adjacency_matrix(matrix, node_prefix: str = ..., directed: bool = ...): ... |
| 42 | +def graph_from_incidence_matrix(matrix, node_prefix: str = ..., directed: bool = ...): ... |
| 43 | + |
| 44 | +class Common: |
| 45 | + def __get_attribute__(self, attr): ... |
| 46 | + def set_parent_graph(self, parent_graph) -> None: ... |
| 47 | + def get_parent_graph(self): ... |
| 48 | + def set(self, name, value) -> None: ... |
| 49 | + def get(self, name): ... |
| 50 | + def get_attributes(self): ... |
| 51 | + def set_sequence(self, seq) -> None: ... |
| 52 | + def get_sequence(self): ... |
| 53 | + def create_attribute_methods(self, obj_attributes: List[str]): ... |
| 54 | + |
| 55 | +class Error(Exception): |
| 56 | + value: Any |
| 57 | + def __init__(self, value) -> None: ... |
| 58 | + |
| 59 | +class InvocationException(Exception): |
| 60 | + value: Any |
| 61 | + def __init__(self, value) -> None: ... |
| 62 | + |
| 63 | +class Node(Common): |
| 64 | + obj_dict: Any |
| 65 | + def __init__(self, name: str = ..., obj_dict: Any | None = ..., **attrs) -> None: ... |
| 66 | + def set_name(self, node_name) -> None: ... |
| 67 | + def get_name(self): ... |
| 68 | + def get_port(self): ... |
| 69 | + def add_style(self, style) -> None: ... |
| 70 | + def to_string(self) -> str: ... |
| 71 | + |
| 72 | +class Edge(Common): |
| 73 | + obj_dict: Any |
| 74 | + def __init__(self, src: str = ..., dst: str = ..., obj_dict: Any | None = ..., **attrs) -> None: ... |
| 75 | + def get_source(self): ... |
| 76 | + def get_destination(self): ... |
| 77 | + def __hash__(self): ... |
| 78 | + def __eq__(self, edge): ... |
| 79 | + def parse_node_ref(self, node_str): ... |
| 80 | + def to_string(self) -> str: ... |
| 81 | + |
| 82 | +class Graph(Common): |
| 83 | + obj_dict: Any |
| 84 | + def __init__(self, graph_name: str = ..., obj_dict: Any | None = ..., graph_type: str = ..., strict: bool = ..., suppress_disconnected: bool = ..., simplify: bool = ..., **attrs) -> None: ... |
| 85 | + def get_graph_type(self): ... |
| 86 | + def get_top_graph_type(self): ... |
| 87 | + def set_graph_defaults(self, **attrs) -> None: ... |
| 88 | + def get_graph_defaults(self, **attrs): ... |
| 89 | + def set_node_defaults(self, **attrs) -> None: ... |
| 90 | + def get_node_defaults(self, **attrs): ... |
| 91 | + def set_edge_defaults(self, **attrs) -> None: ... |
| 92 | + def get_edge_defaults(self, **attrs): ... |
| 93 | + def set_simplify(self, simplify) -> None: ... |
| 94 | + def get_simplify(self): ... |
| 95 | + def set_type(self, graph_type) -> None: ... |
| 96 | + def get_type(self): ... |
| 97 | + def set_name(self, graph_name) -> None: ... |
| 98 | + def get_name(self): ... |
| 99 | + def set_strict(self, val) -> None: ... |
| 100 | + def get_strict(self, val): ... |
| 101 | + def set_suppress_disconnected(self, val) -> None: ... |
| 102 | + def get_suppress_disconnected(self, val): ... |
| 103 | + def get_next_sequence_number(self): ... |
| 104 | + def add_node(self, graph_node) -> None: ... |
| 105 | + def del_node(self, name, index: Any | None = ...): ... |
| 106 | + def get_node(self, name): ... |
| 107 | + def get_nodes(self): ... |
| 108 | + def get_node_list(self): ... |
| 109 | + def add_edge(self, graph_edge) -> None: ... |
| 110 | + def del_edge(self, src_or_list, dst: Any | None = ..., index: Any | None = ...): ... |
| 111 | + def get_edge(self, src_or_list, dst: Any | None = ...): ... |
| 112 | + def get_edges(self): ... |
| 113 | + def get_edge_list(self): ... |
| 114 | + def add_subgraph(self, sgraph) -> None: ... |
| 115 | + def get_subgraph(self, name): ... |
| 116 | + def get_subgraphs(self): ... |
| 117 | + def get_subgraph_list(self): ... |
| 118 | + def set_parent_graph(self, parent_graph) -> None: ... |
| 119 | + def to_string(self) -> str: ... |
| 120 | + |
| 121 | +class Subgraph(Graph): |
| 122 | + def __init__(self, graph_name: str = ..., obj_dict: Any | None = ..., suppress_disconnected: bool = ..., simplify: bool = ..., **attrs) -> None: ... |
| 123 | + |
| 124 | +class Cluster(Graph): |
| 125 | + def __init__(self, graph_name: str = ..., obj_dict: Any | None = ..., suppress_disconnected: bool = ..., simplify: bool = ..., **attrs) -> None: ... |
| 126 | + |
| 127 | +class Dot(Graph): |
| 128 | + shape_files: Any |
| 129 | + formats: Any |
| 130 | + prog: str |
| 131 | + def __init__(self, *argsl, **argsd): ... |
| 132 | + def set_shape_files(self, file_paths) -> None: ... |
| 133 | + def set_prog(self, prog) -> None: ... |
| 134 | + def write(self, path, prog: Any | None = ..., format: str = ..., encoding: Any | None = ...): ... |
| 135 | + def create(self, prog: Any | None = ..., format: str = ..., encoding: Any | None = ...): ... |
0 commit comments