Learn R Programming

WikiSocio (version 0.7.0)

graph_page: Graph a wiki page

Description

Creating a graph objet in witch an edge is a wiki page and a vertice is a link beetween two wiki pages.

Usage

graph_page(x, domain = "fr", namespace = "0")

Arguments

x
Can be either a string defining a page title or a character vector, and the function will return the graph of all the links beetween al the pages included in the vector
domain
The domain where is located the wiki
namespace
The namespace pages the function will graph

Value

An igraph object

Examples

Run this code

# Graph of the 'Action' article in the french wiki.
graph_page('Action')


# Graphing a group of page
page <- c('Karl Marx','Classe sociale','Industrie')
# Return a graph where the 3 edges represents 'Karl Marx', 'Classe sociale' and 'Industrie', 
# and the vertices the link present or not beetween this pages.
g <- graph_page(page)

Run the code above in your browser using DataLab