prepareGraphs: Prepare Graphs

View source: R/prepareGraphs.R

prepareGraphsR Documentation

Prepare Graphs

Description

Prepares the graphical object from the prepared edge and weight list data frame

Usage

prepareGraphs(raw_data_input, project_title = "", weightedGraph = TRUE)

Arguments

raw_data_input

The raw edge and weight list processed from the tabulate_edges() function.

project_title

The title of the project.

weightedGraph

Graph will add weights to the edges to a set of nodes based on the weight specified on the list. Default allows for weights on the graph.

Value

Stores the igraph graph object, graph adjacency matrix, edge and weight lists, project title, and a user option for weighted to list object.

Examples

df <- sampleData1
prepNet <- tabulate_edges(df, silentNodes = 0)
baseNet <- prepareGraphs(prepNet, project_title = "Sample Data 1", weightedGraph = TRUE)


discourseGT documentation built on July 26, 2023, 5:46 p.m.