Digraph: Difference between revisions

From WikiMD's Wellness Encyclopedia

CSV import
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 43: Line 43:
{{No image}}
{{No image}}
{{No image}}
{{No image}}
__NOINDEX__

Latest revision as of 18:29, 18 March 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[edit]

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[edit]

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[edit]

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[edit]

Digraphs are used in various applications, including:

Related Concepts[edit]

See also[edit]

References[edit]

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

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