2 graph theory
DESCRIPTION
TRANSCRIPT
Concepts of Graph Theory
Social Networks; Lecture 2
Summary
• Graph representation of social networks
• Matrix representation of social networks
• Node degree; average degree; degree distribution
• Graph density
• Walks, trails and paths
• Cutpoits, cutsets and bridges
What is a Network?
• A set of dyadic ties, all of the same type,among a set of actors
• Actors can be persons, organizations ...
• A tie is an instance of a social relation
Relations Among Persons
• Kinship– Mother of, father of, sibling of
• Role-Based– Boss of, teacher of– Friend Of
• Affective– Likes, trusts
• Interactions– Gives advice to; talks to; sexual interactions
• Affiliations
Content and Coding Matter!
• Each relation yields a different structure and has different effects
• In real data, more then one relation should be studied.
• Coding: – What constitutes an edge?– How to convert interview data into graph data?
Example
Problem Reformulation
Graph Theoretic Concepts
• Consists of a collection of nodes and lines
• Lines also called “ties” or “edges”• Nodes occasionally called “agents” or
“actors”
G = N,LN={n1,n2,n3...ng}L = {l1, l2, l3...lL}
Directed and Undirected Ties
• Undirected relations• Attended meeting with...• Communicated with...• Friend of...
• Directed relations• Represent flows or subordination• “Lends money to”, “teacher Of”
• Problem - • Ties that should be symmetric can be measured as non-
symmetric due to measurement error• Friendship relations are not always reciprocal
Tie Strength
• We can attach values to ties, representing quantitative attributes• Strength of relationship• Frequency of communication• Information capacity/bandwidth• Physical distance
• Such graph is called “weighted graph”
4
Adjacency Matrices!"#$%&'%()*$+,-%&.
!"#$%&'(#)
*#+ *#,, *$% *-$
*#+ . / 0 /
*#,, / . / 0
*$% 0 / . /
*-$ / 0 / .
1"-2#+#34
*#+ *#,, *$% *-$
*#+ . 5 6 7
*#,, 5 . / /8
*$% 6 / . 5
*-$ 7 /8 5 .
*#+
*#,,
*$%
*-$
5
7
6
/
/85
Sparse Matrix!"#$%&'%()*$+,-%&.
!"#$%&'(#)
*#+ *#,, *$% *-$
*#+ . / 0 /
*#,, / . / 0
*$% 0 / . /
*-$ / 0 / .
1"-2#+#34
*#+ *#,, *$% *-$
*#+ . 5 6 7
*#,, 5 . / /8
*$% 6 / . 5
*-$ 7 /8 5 .
*#+
*#,,
*$%
*-$
5
7
6
/
/85
Jen Jill 1Jen Joe 3Jill Jen 1Jill Jim 3Jim Jill 3Jim Joe 2Joe Jim 2Joe Jen 3
Node Degree
• Degree of a node is a number of lines that connect it to other nodes
• Degree can be interpreted as
• measure of power or importance of a node
• or
• measure of workload
• In directed graphs:
• indegree: number of incoming edges
• outdegree: number of outgoing edges
Marriage Ties AmongLeading Florentine Families!"##$"%&'($&)'*+,-%
./,#&-0$-&'."+$/$&)
1"0"'2,+3$/&4'56'7,8-'9"4%&00
1:#$-%';&-"$))"-2&0$+&)
!"#$%&'()*#*+',-(./
Degree Distribution
Graph Density
• Defined as ratio of number of edges in the graph to the total POSSIBLE number of edges:
! =L
g(g!1)/2=
2Lg(g!1)
!"#$%&'()%()"%*'+"%!,-."/(
!"#$"
%#&&'()
#*+,-.)
&#/)&0+1-
*2.%#%)3
4#&&'()+5
6'1'+7.-,+891:#*1&)+)1+'&
!"#$%&'()%()"%*'+"%!,-."/(
!"#"$%&'($)*#+,-#./$/#$".
0,.."1/$2
Density and Network Survival: Help with rice harvest
Components
• Maximal sets of nodes in which every node can reach every other by some path
!"#$%&'()"&*%+","-'./'#$#%0
!"#"$%&'#()*+*%*,$
-./"0&'#()*+*%*,$+
-0*1*$'.&#,23'$4
5'%'&/0'6$&70,2&80,++9&:,01'%%*&;&<'0="0&>??@A
BC,&4,)&1,&%,&+,&%C'%&4,)&#'$&+'4&DE&0'$&*%&F4&GGGG9&'$/&+C"&+'4+&AAAH
Walks, Trails, Paths
• Walk = a sequence of nodes that can be visited by following edges
• Trail = walk with no repeated lines
• Path = walk with no repeated node
Seven Bridges of Königsberg
Path Length & Distance
• Length of path = number of links
• Length of shortest path between two nodes = distance or “geodesic”
• Longest geodesic between any two nodes
• = graph diameter
Example!"#$%&'(')*+%,#-"
. !"#$%&'/0','1,%&'*+#234"5'/0'6*#7+
. )*+%,#-"'4"%8""#'%8/#/9"+'*+'6"#$%&'/0+&/5%"+%'1,%&':,7,$"/9"+*-;
!
"
#
$%
&
'
(
)
!*
!!
!"
Cutpoints• Nodes, if deleted, would disconnect the
network
• Cutset = set of nodes required to keep a graph connected
!"#$%&'#(
) *%+,(-./&0/1-&2-+,3,#,+1-.%"3+-+&(0%'',0#-',#
!"##
!$%
!&'()
!$**"&
!&'')
!"++
Bridges• An edge, if removed, would disconnect the
network
• Local bridge: connects nodes that otherwise would be far removed
!"#$%&'()*+,&"-&.,+(,,&/
0 1&2),&23$2&#"44,#25&4"*,5&23$2&6"7%*"23,(6)5,&8,&$2&%,$52&9&52,:5&$:$(2
1'
Centralization
• Degree to which network revolves around a single node
!"#$%&'&($')&*+$,-
./,*&,'0%#1)12*,/*1$)'#&&*1)(2
3/*/'4$5,*&26'$7'8149/&:';1)-<&/,'! <&/,'=
Next Time
• Centrality and Power in Social Networks
• Identification of Key Players