Digraph: Difference between revisions

From WikiMD's Wellness Encyclopedia

CSV import
 
CSV import
Line 41: Line 41:
[[Category:Computer science]]
[[Category:Computer science]]
{{graph-stub}}
{{graph-stub}}
{{No image}}

Revision as of 14:26, 10 February 2025

Directed graph in mathematics and computer science


 This article is about directed graphs in mathematics and computer science.
   For other uses, see Digraph (disambiguation).


A digraph or directed graph is a type of graph in which the edges have a direction. This means that each edge is an ordered pair of vertices, representing a one-way relationship between the vertices. Digraphs are used extensively in computer science, mathematics, and related fields to model relationships and processes.

Definition

A digraph is defined as a pair \( G = (V, E) \), where:

  • \( V \) is a set of vertices (also called nodes or points).
  • \( E \) is a set of ordered pairs of vertices, called directed edges (or arcs).

In a digraph, an edge \( (u, v) \) is directed from vertex \( u \) to vertex \( v \). This directionality distinguishes digraphs from undirected graphs, where edges have no orientation.

Types of Digraphs

There are several types of digraphs, including:

  • Simple digraphs: Digraphs with no multiple edges or loops.
  • Multidigraphs: Digraphs that allow multiple edges between the same pair of vertices.
  • Weighted digraphs: Digraphs where edges have associated weights or costs.

Properties

Digraphs have several important properties:

  • In-degree and out-degree: The in-degree of a vertex is the number of edges directed towards it, while the out-degree is the number of edges directed away from it.
  • Paths and cycles: A path in a digraph is a sequence of vertices connected by directed edges. A cycle is a path that starts and ends at the same vertex.
  • Strong connectivity: A digraph is strongly connected if there is a directed path from any vertex to every other vertex.

Applications

Digraphs are used in various applications, including:

Related Concepts

See also

References

<references group="" responsive="1"></references>

Stub icon
   This article is a graph theory-related stub. You can help WikiMD by expanding it!