Lecture 03 - Network models Flashcards
Networks
What is another name for a network?
A graph
Networks
What does a network consist of?
Nodes/vertices and edges
Networks
What is a neighbour?
If nodes A and B are connected with an edge, they are neighbours.
Networks
What are the two most common ways to represent networks in a computer?
- Adjacency matrix
- Adjacency list
Networks
What is an adjacency matrix?
A matrix of m * m elements which shows how each node is connected to all other nodes.
Networks
What is an adjacency list?
A dictionary mapping nodes to a list of which other nodes they’re connected to. Python annotation: dict[str, list[str]]
Networks
What is this?
An adjacency matrix
Networks
What is this?
An adjacency list
Networks
What is the degree of a node?
The number of edges connected to it.
For directed nodes, there’s a difference between “indegree” and “outdegree” as well
Networks
What’s the typical way of writing the node’s degree?
deg(i), with i being the i-th node.
Networks
What is a walk?
A list of edges that are sequentially connected to form a continuous route in a network.
Networks
What is a trail?
A walk that doesn’t go through any edge more than once.
Networks
What is a path?
A walk that doesn’t go through any node more than once.
Networks
What is a cycle?
A walk that starts and ends at the same node, without going through any node more than once.
Networks
What is this a description of?
“A list of edges that are sequentially connected to form a continuous route in a network.”
A walk
Networks
What is this a description of?
“A walk that doesn’t go through any edge more than once.”
A trail
Networks
What is this a description of?
“A walk that doesn’t go through any node more than once.”
A path
Networks
What is this a description of?
“A walk that starts and ends at the same node, without going through any node more than once.”
A cycle
Networks
What is a subgraph?
A part of the graph.
Networks
What is a connected graph?
A graph in which a path exists between any pair of nodes.
Networks
What is a connected component?
A subgraph of a graph that is connected within itself, but not to the rest of the graph.
Networks
What is this a description of?
“A graph in which a path exists between any pair of nodes.”
A connected graph
Networks
What is the name of a subgraph that is connected within itself, but not to the rest of the graph.
A connected component
Networks
What is this a description of?
“A part of the graph.”
A subgraph