Learn R Programming

Diderot (version 0.13)

load_graph: Function to load a citation graph

Description

This function loads a citation graph saved on the filesystem.

Usage

load_graph(filename)

Arguments

filename

File to load

Value

Returns a graph object.

See Also

save_graph

Examples

Run this code
# NOT RUN {
labels<-c("Corpus1","Corpus2")

# Build a bibliographical dataset from Scopus exports
db<-create_bibliography(corpora_files=c(tempfi1,tempfi2), 
                        labels=labels, keywords=NA)
# }
# NOT RUN {
# 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")
# }

Run the code above in your browser using DataLab