Graphs terminology Flashcards
Undirected graph
A non-empty graph where the edges do not have a specified direction
Directed graph (digraph)
A non-empty graph where the edges have a specified direction
Source
Digraph - where an edge starts
Sink
Digraph - where an edge ends
Subgraph
A subset of the vertices and edges in a graph
undirected -> directed
Assing a directionality, then give each edge an additional symetric edge
directed -> undirected
Remove the directionality of each edge, then remove duplicate edges
Weighted graph
Graph with real-valued weights assigned to the edges - stored instead of bools in adjacency list/matrix
Adjacency (undirected)
Two nodes are adjacent if they are connected by an edge
Adjacency (directed)
Node A is adjacent to node B if there is an edge from B to A.
Generally, a node is adjacent to another node if the first node has an inbound edge from the second node
Connected
(undirected) A path exists from every node to every other node
Weakly connected
(dircted) A path exists from every node to every other node ignoring directionality
Strongly connected
(directed) A path exists from every node to every other node taking directionality into account
Complete
Every node has an edge to every other node
Clique
A complete subgraph containing two or more nodes