Digraph

From WikiMD's Wellness Encyclopedia


About WikiMD: The article, Digraph, is part of WikiMD.
WikiMD is a free medical encyclopedia and wellnesspedia moderated by medical professionals.

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

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

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

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

Digraphs are used in various applications, including:

Related Concepts[edit | edit source]

See also[edit | edit source]

References[edit | edit source]


WikiMD
Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD

Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

WikiMD is not a substitute for professional medical advice. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD