load_graph function

Function to load a citation graph

Function to load a citation graph

This function loads a citation graph saved on the filesystem.

load_graph(filename)

Arguments

  • filename: File to load

Returns

Returns a graph object.

Author(s)

Christian Vincenot (christian@vincenot.biz)

Note

This function basically supports only graph previously saved with Diderot's save_graph. However, as the file is actually a graphml file handled by igraph, advanced users may use this function on appropriate graphs created elsewhere, as long as they respect Diderot's structure (presence of a "Corpus"" field, etc).

See Also

save_graph

Examples

labels<-c("Corpus1","Corpus2") # Build a bibliographical dataset from Scopus exports db<-create_bibliography(corpora_files=c(tempfi1,tempfi2), labels=labels, keywords=NA) # Build graph gr<-build_graph(db=db,small.year.mismatch=TRUE, attrs=c("Corpus","Year","Authors"), nb.cores=1) ## Not run: save_graph(gr, "Saved.graphml") # Load saved graph gr<-load_graph("Saved.graphml") ## End(Not run)
  • Maintainer: Christian Vincenot
  • License: GPL (>= 2)
  • Last published: 2020-04-19

Useful links