Social Network Analysis With Igraph Package Using R

From AIRWiki
Revision as of 11:16, 3 April 2010 by RiccardoTasso (Talk | contribs) (New page: = Install the package under R environmemnt = type the command: <code>install.packages("igraph")</code> = Starting with the package = don't forget to load the library: <code>library('i...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Install the package under R environmemnt

type the command:

install.packages("igraph")


Starting with the package

don't forget to load the library:

library('igraph')

parse a network file in Pajek format and access to its memory representation through the variable 'g':

g <- read.graph(file='/your/path/.../file.net', format='pajek')