CSE 21 Chapter Notes - Chapter 7: Directed Graph

84 views1 pages
Graphs and Graph models
Graph = ordered pair (nonempty set of vertices, set of edges)
loops areedges that connect a vertex to itself
a edge has either one (self loop) or two vertices associated with it called endpoints
an edge connects endpoints
Usually graphs are visualized with dots as vertices and line segments as edges.
"The way we drawca graph is arbitrary, as long as the correct connections between vertices are depicted."
Simple graph
each edge connects 2 different vertices
no 2 edges connect the same pair of vertices
Multigraphs
may have multiple edges connecting the same vertices
Directed graph = digraph is an ordered pair (nonempty set of vertices, set of direct edges or arcs)
Simple directed graph contains no loops and has no multiple directed edges
Although the terminology used to describe graphs may vary, three key questions can help us understand the
structure of a graph:
1. Are the edges of the graph undirected or directed (or both)?
2. If the graph is undirected, are multiple edges present that connect the same pair of vertices? If the graph is
directed, are multiple directed edges present?
3. Are loops present?
Unlock document

This preview shows half of the first page of the document.
Unlock all 1 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers