Docsity

Graph Concepts - Lecture Slides | PHYS 597A, Study notes of Physics

Toggle sidebar
bg1
Graph concepts
Graphs are made up by vertices (nodes) and edges (links).
An edge connects two vertices, or a vertex with itself โ€“ loop.
AC, AC - multiple edges
BB โ€“ loop
The shape of the graph does not
matter, only the way the nodes are
connected to each other.
Usually we will not consider loops and self-edges โ€“ simple graph.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Graph Concepts - Lecture Slides | PHYS 597A and more Study notes Physics in PDF only on Docsity!

Graph concepts

Graphs are made up by vertices (nodes) and edges (links).An edge connects two vertices, or a vertex with itself โ€“ loop.

AC, AC - multiple edgesBB โ€“ loop

The shape of the graph does notmatter, only the way the nodes areconnected to each other.

Usually we will not consider loops and self-edges โ€“ simple graph.

Node degrees

Node degree: the number of edges incident at

the node. In directed networks we can define anin- degree and out-degree.Average degreeThe degree distribution

gives the

fraction of nodes that have

edges.

=

N i

i

k

N

k

1

k

P

k

i

k

Connected and disconnected graphs

Connected graph: any two vertices can be joined by a path.A disconnected graph is made up by connected components.

Bridge: if we erase it, the graph becomes disconnected.

  1. Draw two pictures of the graph with nodes: A,B,C,D,

edges: AB, BC, BD, CD

  1. Draw a graph with 4 nodes such that each node has degree

1/2/3.

  1. What is the relation between the number of edges in a(non-directed) graph and the sum of node degrees? Howabout a directed graph?4. You have N nodes and need to build a connected graph from

them. Each time you add an edge you must pay $1. What is theminimum amount of money needed to build the graph?

  1. You are constructing a graph from N nodes. For each edge youadd you make $1. You are not allowed to add loops or multiple

edges, and you must stop before the graph is connected. What is the most money you can make?

Distances between nodes

The distance between two nodes is definedas the number of edges along the shortestpath.If the two nodes are disconnected, thedistance is infinity.

Average path length ofconnected graph N

pairs

is the number of node pairs

โ‰ 

i

j

i

ij

pairs

l

N

l

,

2

) 1

(

2

โˆ’

=

โŽžโŽŸโŽŸโŽ 

โŽ›โŽœโŽœโŽ

=

N

N

N

N

pairs

Local order and clustering

Social networks frequently contain cliquesLocal order: how close the neighborhoodof a node is to a clique?Clustering coefficientAverage clustering coefficient

) 1 N ( N n , 1 N k

=

N

1

i

i

C

N

C

2 / ) 1 k ( k

n

C

i

i

i

i

Properties of regular lattices

One-dimensional lattice:

2 / 1 N L l

โ‰ˆ

โ‰ˆ

nodes

inside

for

C

nodes

inside

for

k

The average path-lenght varies asConstant degree (coordination number), constant clusteringcoefficient.

const

C

const

k

N

l

=

=

โ‰ˆ

,

,

D

N

l

/

1

โ‰ˆ

Ex. 4Start with 10 isolated nodes. For each pair of nodes, throw witha dice, and connect them if the number on the dice is 1.Describe the graph you obtained. How many edges are in thegraph? Is it connected or not? What is the average degree andthe degree distribution?Ex. 5Now connect node pairs if the number on the dice is 1 or 2. How isthe graph different from the previous case?Ex. 6How many edges do you expect a graph with N nodes wouldhave if each edge is selected with throwing with a dice?