graph_page: Graph a wiki page

Description Usage Arguments Value Examples

View source: R/graph.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
9
# 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)

WikiSocio documentation built on May 29, 2017, 10:42 p.m.