





















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Prof. Zeph Grunschlag, Computer Science, Graphs, isomorphism, Adjacency matrices, Graphs Basics, Types of Graphs, Bitrate, Trees, adjacency, incidence, Columbia, Lecture Notes
Typology: Study notes
1 / 93
This page cannot be seen from the preview
Don't miss anything!






















































































Zeph Grunschlag
Graph basics and definitions Vertices/nodes, edges, adjacency, incidence Degree, in-degree, out-degree Degree, in-degree, out-degree Subgraphs, unions, isomorphism Adjacency matrices Types of Graphs Trees Undirected graphs Simple graphs, Multigraphs, Pseudographs Digraphs, Directed multigraph Bipartite Complete graphs, cycles, wheels, cubes, complete bipartite
A graph is a bunch of vertices (or nodes) represented by circles which are connected by edges, represented by line segments. Mathematically, graphs are binary-relations on their vertex set (except for multigraphs). In Data Structures one often starts with trees and generalizes to graphs. In this course, opposite approach: We start with graphs and restrict to get trees.
A very important type of graph in CS is
Real
Tree
A very important type of graph in CS is
Real
Tree transformation
A very important type of graph in CS is
Real Abstract
Tree transformation Tree
Vertices are labeled to associate with particular computers
Each edge can be viewed as the set of its two endpoints
1 2
3 4
{1,2}
{3,4}
{1,3} {2,3} {2,4}
{1,4}
(an unordered pair).
many possible edges there?
A: The number of subsets in the set of
possible edges, therefore the number of
If computers are connected via internet instead of directly, there may be several routes to choose from for each connection. Depending on traffic, one route could be better than another. Makes sense to allow multiple edges, but still no self-loops:
If self-loops are allowed we get a pseudograph:
Now edges may be associated with a single vertex, when the edge is a loop
1 2
3 4
endpoints of the same edge.
Q: Which vertices are adjacent to 1? How about adjacent to 2, 3, and 4?
1 2
3 4
A: 1 is adjacent to 2 and 3
2 is adjacent to 1 and 3 3 is adjacent to 1 and 2 4 is not adjacent to any vertex
1 2
3 4