Студопедия  
Главная страница | Контакты | Случайная страница

АвтомобилиАстрономияБиологияГеографияДом и садДругие языкиДругоеИнформатика
ИсторияКультураЛитератураЛогикаМатематикаМедицинаМеталлургияМеханика
ОбразованиеОхрана трудаПедагогикаПолитикаПравоПсихологияРелигияРиторика
СоциологияСпортСтроительствоТехнологияТуризмФизикаФилософияФинансы
ХимияЧерчениеЭкологияЭкономикаЭлектроника

Representing relations using digraphs

Читайте также:
  1. A content of legal relations.
  2. B) Make up sentences of your own using these idiomatic expression. Ask about the Smiths, mother, father, brother.
  3. B) Make up sentences of your own using these idiomatic expressions. Ask about Cecily, Alice, Sam, Sally, Sandra.
  4. B) Make up sentences of your own using these idiomatic expressions. Ask about Charles, Rose, James.
  5. B) Make up sentences of your own using these idiomatic expressions. Ask about Gary, Gil, Peggy, Grig, Gert, Grace, Gregory, Gordon.
  6. B) Make up sentences of your own using these idiomatic expressions. Ask about Ken, Kate, Kirk, Kay, Kim, Kiki, Kit.
  7. b) Make up sentences of your own using these idiomatic expressions. Ask about Pat, Pete, Percy, Poll, Peg, Pam.
  8. B) Make up sentences of your own using these idiomatic expressions. Ask about Thad, Theo, Martha, Kenneth, Arthur, Thornton, Thorp, Theodore.
  9. B) Make up sentences of your own using these idiomatic expressions. Ask about Tom, Tim, Mart, Ted, Tess, Tina.
  10. B. Complete these sentences by using a term from the text.

A directed graph, or digraph, consists of a set V of vertices (or nodes) together with a set E of ordered pairs of elements of V called edges (or arcs). The vertex a is called the initial vertex of the edge (a, b), and the vertex b is called the terminal vertex of this edge.

An edge of the form (a, a) is represented using an arc from the vertex a back to itself. Such an edge is called a loop.

Example. The directed graph with vertices a, b, c and d, and edges (a, b), (a, d), (b, b), (b, d), (c, a), (c, b) and (d, b) is displayed in Figure:

Example. The directed graph of the relation R = {(1, 1),(1, 3), (2, 1),(2, 3),(2, 4), (3, 1), (3, 2),(4, 1)} on the set {1, 2, 3, 4} is shown in Figure:

Example. What are the ordered pairs in the relation R represented by the directed graph shown in Figure below?

Solution: The ordered pair (x, y) in the relation are R = {(1, 3),(1, 4), (2, 1),(2, 2),(2, 3), (3, 1), (3, 3), (4, 1), (4, 3)}. Each of these pairs corresponds to an edge of the directed graph, with (2, 2) and (3, 3), corresponding to loops.

 




Дата добавления: 2014-12-23; просмотров: 34 | Поможем написать вашу работу | Нарушение авторских прав




lektsii.net - Лекции.Нет - 2014-2024 год. (0.006 сек.) Все материалы представленные на сайте исключительно с целью ознакомления читателями и не преследуют коммерческих целей или нарушение авторских прав