encyclopegia.org

dependency graph

In mathematics, computer science and digital electronics, a dependency graph is a directed graph representing dependencies of several objects towards each other. It is possible to derive an evaluation order or the absence of an evaluation order that respects the given dependencies from the dependency graph.

In mathematics, computer science and digital electronics, a dependency graph is a directed graph representing dependencies of several objects towards each other. It is possible to derive an evaluation order or the absence of an evaluation order that respects the given dependencies from the dependency graph. Given a set of objects S and a transitive relation R \subseteq S \times S with (a,b) \in R modeling a dependency "a depends on b" ("a needs b evaluated first"), the dependency graph is a graph G = (S, T) with T \subseteq R the transitive reduction of R. For example, assume a simple calculator. This calculator supports assignment of constant values to variables and assigning the sum of exactly two variables to a third variable. Given several equations like "A = B+C; B = 5+D; C=4; D=2;", then S=\{A,B,C,D\} and R=\{(A,B),(A,C),(B,V),(A,V)\} . You can derive this relation directly: A depends on B and C, because you can add two variables if and only if you know the values of both variables. Thus, B must be calculated before A can be calculated. Since B depends on D to be calculated, A must also depend on D to be calculated before it (hence the transitive property stated above). On the other hand, the values of C and D are known immediately, because they are number literals. Assume the simple calculator from before. The equation system "A=B; B=D+C; C=D+A; D=12;" contains a circular dependency formed by A, B and C, as B must be evaluated before A, C must be evaluated before B, and A must be evaluated before C. Assume the simple calculator from above once more. Given the equation system "A = B+C; B = 5+D; C=4; D=2;", a correct evaluation order would be (D, C, B, A). However, (C, D, B, A) is a correct evaluation order as well. The monoidal operation (S_{12},R_{12})=(S_1,R_1)\bullet (S_2,R_2) takes the disjoint union S_{12}=S_1 \sqcup S_2 of two graphs' vertex sets, preserves the existing edges in each graph, and draws new edges from the first to the second where the dependency relation allows, R_{12} = R_1 \sqcup R_2 \sqcup \{(a,b)\mid a\in S_1 \land b\in S_2 \land (\phi(a),\phi(b))\in D\} The identity is the empty graph. ==Examples== Dependency graphs are used in: Automated software installers: They walk the graph looking for software packages that are required but not yet installed. The dependency is given by the coupling of the packages. Software build scripts such as Unix Make, Node npm install, php composer, Twitter bower install, or Apache Ant. They need to know what files have changed so only the correct files need to be recompiled. In compiler technology and formal language implementation: Instruction scheduling: Dependency graphs are computed for the operands of assembly or intermediate instructions and used to determine an optimal order for the instructions. Dead code elimination: If no side effected operation depends on a variable, this variable is considered dead and can be removed. Dynamic graph analytics: GraphBolt and KickStarter capture value dependencies for incremental computing when graph structure changes. Spreadsheet calculators. They need to derive a correct calculation order similar to that one in the example used in this article. Web Forms standards such as XForms to know what visual elements to update if data in the model changes. Dependency graphs are used in alarm correlation approaches for tracing the impact or propagation of network attacks through the network. This approach exploits the spatio-temporal attributes of alarms and the dependencies between network devices, which are modeled as a network dependency graph. Given that false alarms generated by an intrusion detection system (IDS), for example, may produce incorrect dependency relationships, entropy-based measures can be applied to mitigate the uncertainty introduced by false alarms in the identification of attack impact or propagation paths. Video games, especially puzzle and adventure video games, which are frequently designed as a graph of dependent relationships between in-game actions. Dependency graphs are one aspect of: Manufacturing plant types: Raw materials are processed into products via several dependent stages. Job shop scheduling: A collection of related theoretical problems in computer science. ==See also== ==References==

References

No reference rows published for this article.

Cite this article

MLA

"dependency graph." encyclopegia.org, 2026, https://encyclopegia.org/wiki/dependency-graph. Accessed 24 November 2026.

Chicago

"dependency graph." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/dependency-graph.

APA

encyclopegia.org. (2026). dependency graph. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/dependency-graph

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Nadia Younes

stub · references available

Operation Nimble Archer

stub · references available

Islam in Mali

stub · references available

Pope Benjamin II of Alexandria

stub · references available

Avometer

stub · references available

1987 Mecca incident

stub · references available

Olavi Paavolainen

stub · references available
CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1374786303 · 0.55 · snapshot dependency-graph-475823-930fd658efcf4a09 · QID Q4148050

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.