![]()
MATH347 L27: SVD applications
|
New concepts:
Graph representation of social networks
Clustering through SVD
![]()
Graph representation of networks
|
A Social Network consists of:
Actors (e.g., individuals, organizations)
Interactions (e.g., communication, transactions)
A mathematical Graph contains a set of vertices and edges,
For a graph with edges and vertices, define edge-vertex incidence matrix
Connectivity matrix , , for on an edge
Construct a graph of actors with two types of interactions:
interactions between and
interactions between and
interactions between and
Suppose the interaction groups were not known initially.
Could the interaction groups be found from the incidence matrix?
![]()
Construct incidence matrix
|
Far interactions
matlab>> |
mFar=100; mNear=30; m=mFar+mNear; n=50; B=zeros(m,n); C=zeros(n,n); E=[]; for r=1:mFar p=randi(n/2); q=randi([n/2+1 n]); B(r,p)= 1; B(r,q)=-1; E=[E [p; q]]; C(p,q)=1; C(q,p)=1; end |
>>
Near interactions
matlab>> |
for r=mFar+1:mFar+mNear p=randi(n/2); q=randi(n/2); B(r,p)=1; B(r,q)=-1; E=[E [p; q]]; C(p,q)=1; C(q,p)=1; end |
>>
matlab>> |
for r=mFar+mNear+1:mFar+2*mNear p=randi([n/2+1 n]); q=randi([n/2+1 n]); B(r,p)=1; B(r,q)=-1; E=[E [p; q]]; C(p,q)=1; C(q,p)=1; end |
>>
matlab>> |
![]()
SVD clustering
|
SVD of
matlab>> |
[U S V]=svd(B); plot(V(1:n/2,1),V(1:n/2,2),'o'); hold; plot(V(n/2+1:n,1),V(n/2+1;n,2),'o') |
>>
matlab>> |
![]()
Graphical representation of network
|