Intro to Graphs Flashcards

1
Q

What is a graph in mathematics?

A

A graph is a collection of vertices (nodes) and edges (connections) between them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the different types of graphs? (not on test)

A

Undirected Graph: Edges have no direction.

Directed Graph (Digraph): Edges have a direction.
Weighted Graph: Edges have weights or costs.
Unweighted Graph: Edges have no associated weight.
Complete Graph: Every pair of vertices is connected.
Bipartite Graph: Vertices are divided into two disjoint sets.
Tree: A connected, acyclic graph.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the common ways to represent a graph in a computer?

A

Adjacency List: Stores nodes and their neighbors.

Adjacency Matrix: A 2D matrix where an entry (i, j) is 1 if there’s an edge between node i and j.
Incidence Matrix: Represents edges and their incidence on nodes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the Graph Neural Network (GNN) approach?

A

A deep learning model designed to process graph-structured data by message passing between nodes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are some types of Graph Neural Networks (GNNs)?

A

GCN (Graph Convolutional Networks): Generalizes convolution to graphs.

GAT (Graph Attention Networks): Uses attention mechanisms for node importance.
GIN (Graph Isomorphism Networks): Focuses on distinguishing different graph structures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Dijkstra’s Algorithm used for?

A

Finding the shortest path from a source vertex to all other vertices in a weighted graph.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an Eulerian Path?

A

A path that visits every edge of a graph exactly once.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a Hamiltonian Path?

A

A path that visits every vertex of a graph exactly once.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the Minimum Spanning Tree (MST)?

A

A subset of edges that connects all vertices with minimum total edge weight and no cycles.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Betweenness

A

A measure of how often a node or edge appears on shortest paths between other nodes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the Girvan–Newman Algorithm?

A

A community detection algorithm that removes edges with high betweenness to split graphs into communities.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the steps of the Girvan–Newman Algorithm?

A

Compute Edge Betweenness for all edges.
Remove the edge with the highest betweenness.
Recompute betweenness and repeat until the graph splits into communities.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are Graph Databases?

A

Databases designed to store and query graph data efficiently (e.g., Neo4j, Amazon Neptune).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly