graph_to_dsmj: Exports a graph as a dsmj.

View source: R/graph.R

graph_to_dsmjR Documentation

Exports a graph as a dsmj.

Description

Exports a graph as a dsmj.

Usage

graph_to_dsmj(graph, dsmj_path, dsmj_name, is_directed, is_sorted = FALSE)

Arguments

graph

a graph returned by model_directed_graph

dsmj_path

path to save the dsmj.

dsmj_name

name of the dsmj file, passed by the call from an appropriate transform function.

is_directed

whether the graph is directed. If false, cells will be doubled. with src/dest switched to represent an undirected graph as a directed graph.

is_sorted

whether to sort the variables (filenames) in the dsm.json files (optional).

Value

the path to the dsm.json file saved.

See Also

transform_dependencies_to_sdsmj to transform dependencies from Depends into a structure dsm.json, transform_gitlog_to_hdsmj to transform a gitlog table into a history dsm.json, and transform_temporal_gitlog_to_adsmj to transform a gitlog table into an author dsm.json.

Other dv8: dependencies_to_sdsmj(), dv8_clsxb_to_clsxj(), dv8_clsxj_to_clsxb(), dv8_depends_to_sdsmj(), dv8_dsmj_to_dsmb(), dv8_hdsmb_sdsmb_to_mdsmb(), dv8_mdsmb_to_flaws(), gitlog_to_hdsmj(), parse_dv8_architectural_flaws(), parse_dv8_clusters(), transform_dependencies_to_sdsmj(), transform_gitlog_to_hdsmj(), transform_temporal_gitlog_to_adsmj()


sailuh/kaiaulu documentation built on Dec. 10, 2024, 3:14 a.m.