Internal constructor that creates a cograph_network object with the unified format. Both cograph() and as_cograph() use this to ensure identical output.
.create_cograph_network(
nodes,
edges,
directed,
meta = list(),
weights = NULL,
data = NULL,
node_groups = NULL,
type = NULL
)A cograph_network object (named list with class).
Data frame with node information (id, label, x, y, ...).
Data frame with edge information (from, to, weight).
Logical. Is the network directed?
List with consolidated metadata: source, layout, tna sub-fields.
Full n×n weight matrix for TNA compatibility, or NULL.
Original estimation data (sequence matrix, edge list, etc.), or NULL.
Optional node groupings data frame.