datatable-to-graph
Creates a graph structure from a datatable containing edge data.
Graph data structure is used to represent networks with nodes and edges. This adaptor turns data from a datatable into a graph data type.
Arguments
Inputs:
data
: The datatable containing edge data.
from
: The name of the column containing the origin node of the edge.
to
: The name of the column containing the destination node of the edge.
direction
: Specifies whether the graph is directed or not. Defaults to none (no directionality, producing undirected graph) (this can be altered using force-directed-layout)
Output:
graph
: A graph structure defining nodes and edges.
Possible use cases
Converting a datatable to a graph, which can then be converted to DOT format (using graph-to-dot adaptor), which can then be fed into the network argument in one of the Microreact adaptors (create-microreact-project, update-microreact-project)
Formatting the data from a spreadsheet before exporting as a DOT file (using graph-to-dot adaptor)
Preparing data for the force-directed-layout adaptor.
Last updated