Graph reference
A certificate is built on a labelled graph: a HybridSystems.GraphAutomaton, one mode per edge, or a WordGraph, one word per edge. See Choosing a graph for what the predicates mean.
Queries
PathCompleteCertificates.CertificateGraph — Type
CertificateGraphA graph a certificate is built on: a HybridSystems.GraphAutomaton, one mode per edge, or a WordGraph, one word per edge.
PathCompleteCertificates.WordGraph — Type
WordGraph(n_nodes)A labelled graph whose edges carry words, finite sequences of modes. Safety, optimal control and common accept it only when every word is a single mode.
PathCompleteCertificates.add_edge! — Method
add_edge!(graph, s, d, label)Add an edge from s to d reading label, a mode or a vector of modes, and return it. Only a WordGraph accepts a word of several modes.
PathCompleteCertificates.alphabet — Method
alphabet(graph)The distinct modes appearing on the edges of graph, sorted.
PathCompleteCertificates.dest — Method
dest(edge)The destination node of an edge.
PathCompleteCertificates.edges — Method
edges(graph)The edges of graph.
PathCompleteCertificates.empty_graph — Method
empty_graph(n_nodes)A HybridSystems.GraphAutomaton with n_nodes nodes and no edge, to be filled with add_edge!, one mode per edge.
PathCompleteCertificates.has_edge — Method
has_edge(graph, edge) -> BoolWhether edge belongs to graph.
PathCompleteCertificates.has_words — Method
has_words(graph) -> BoolWhether some edge of graph reads a word of two or more modes.
PathCompleteCertificates.incoming_edges — Method
incoming_edges(graph, node)
incoming_edges(graph, node, mode)The edges entering node, optionally only those whose label is the single mode mode. An edge reading a word of several modes is never among the latter.
PathCompleteCertificates.indegree — Method
indegree(graph, node)The number of edges entering node.
PathCompleteCertificates.label — Method
label(graph, edge)The label of edge in graph: a mode, or a word on a WordGraph.
PathCompleteCertificates.letters — Method
letters(label)The modes a label reads, in order.
PathCompleteCertificates.n_edges — Method
n_edges(graph)The number of edges of graph.
PathCompleteCertificates.n_nodes — Method
n_nodes(graph)The number of nodes of graph.
PathCompleteCertificates.nodes — Method
nodes(graph)The nodes of graph.
PathCompleteCertificates.outdegree — Method
outdegree(graph, node)The number of edges leaving node.
PathCompleteCertificates.outgoing_edges — Method
outgoing_edges(graph, node)
outgoing_edges(graph, node, mode)The edges leaving node, optionally only those whose label is the single mode mode. An edge reading a word of several modes is never among the latter.
PathCompleteCertificates.source — Method
source(edge)The source node of an edge.
Word graphs
PathCompleteCertificates.expanded_form — Method
expanded_form(graph)The graph with one mode per edge obtained by breaking every word edge (a, b, i₁…iₖ) into a chain a → m₁ → ⋯ → mₖ₋₁ → b through k − 1 new nodes. Nodes 1:n_nodes(graph) keep their number, and the new ones follow.
Path-completeness
PathCompleteCertificates.is_co_complete — Method
is_co_complete(graph)
is_co_complete(graph, alphabet)Whether every node has an incoming edge for every letter of alphabet, which is sufficient, not necessary, for is_path_complete. Without a second argument the alphabet is the modes graph uses. false on a graph with a word of several modes.
PathCompleteCertificates.is_complete — Method
is_complete(graph)
is_complete(graph, alphabet)Whether every node has an outgoing edge for every letter of alphabet, which is sufficient, not necessary, for is_path_complete. Without a second argument the alphabet is the modes graph uses. false on a graph with a word of several modes.
PathCompleteCertificates.is_path_complete — Method
is_path_complete(graph)
is_path_complete(graph, alphabet)Whether every switching sequence over alphabet labels a path of graph. Without a second argument the alphabet is the modes graph uses.
Dual graphs
PathCompleteCertificates.dual — Function
dual(x)
dual(template, V)The dual of a graph, lift, operation, template, system, problem or certificate. dual(template, V) is the dual norm of a fitted node function V, as a member of dual(template).
PathCompleteCertificates.dual — Method
dual(graph)The dual graph: every edge a → b reversed into b → a, every word reversed. Path-completeness is preserved.
Simulation
PathCompleteCertificates.simulation — Method
simulation(G, H) -> Union{Nothing, Vector{Int}}A map R from the nodes of H to those of G such that (R(s), R(d), i) is an edge of G for every edge (s, d, i) of H, or nothing if none exists. Such a simulation proves that H is at least as good as G for every template (see Comparing graphs).
Constructions
PathCompleteCertificates.common_graph — Method
common_graph(system)
common_graph(n_modes)One node with a loop per mode, the De Bruijn graph of order 0. Its certificate is a single function, for stability a common Lyapunov function.
PathCompleteCertificates.de_bruijn — Method
de_bruijn(order, n_modes)The De Bruijn graph of order l = order on n_modes modes. It has a node per sequence (i₁, …, iₗ) of the last l modes, newest first, and an edge labelled σ from (i₁, …, iₗ) to (σ, i₁, …, iₗ₋₁). It is complete, hence path-complete. Order 0 is common_graph. The dual De Bruijn graph is dual(de_bruijn(order, n_modes)).
PathCompleteCertificates.observer_graph — Method
observer_graph(graph) -> (observer, states)
observer_graph(graph, alphabet) -> (observer, states)The observer graph of graph. Its nodes are nonempty subsets of the nodes of graph, starting from the set of all of them, and there is an edge (P, Q, σ) when Q is the set of successors by σ of the nodes in P. states[k] is the subset that observer node k stands for.
PathCompleteCertificates.simple_cycles — Method
simple_cycles(graph; max_length = n_nodes(graph))Every simple cycle of graph with at most max_length edges, as the sequence of its edges.