Research Article

The Finding and Dynamic Detection of Opinion Leaders in Social Network

Algorithm 1

The algorithm to build comment network.
Input: explicit links and implicit links in , sentiment orientation of every ;
Output: //Comment Network of ;
Description:
(1) for each
(2)  for each
(3)   if ( link to ) //the link includes explicit and implicit link
(4)   if has the same sentiment orientation with
(5)     positive link to ;
(6)   else
(7)     negative link to ;
(8) assign weight wtij for edge ;