# NOT RUN {
g <- biconnected_network %>%
prepare_edges(., k = 1000) %>%
#prepare the continuous features as normal
prepare_continuous_force(., node_names = "name", force_var = "force") %>%
#prepare the categorical features as normal
prepare_categorical_force(., node_names = "name", force_var = "group")
#embed them using the high dimensional function
two_dimensional_embeddings <- setse_auto_hd(g, force = c("group_A", "force"), k = "weight")
edge_embeddings_df <- calc_tension_strain_hd(g, two_dimensional_embeddings$node_embeddings)
all.equal(two_dimensional_embeddings$edge_embeddings, edge_embeddings_df)
# }
Run the code above in your browser using DataLab