hg_get() is the single reader of the package. Every object a
constructor or a verb returns – a hypergraph, a memory network, a
simplicial complex, an inference or a community result – hands over its
tables through hg_get(), never through $. what = selects the table;
what = NULL (the default) returns the object's primary table. Filters,
orderings and top = are named arguments of the method for that class.
Value
A base data.frame, one row per observation of the selected
table. An object of a class without a method raises
hypernets_bad_input, naming the class.
Tables by class
net_hg(hypergraphs)"edges"(default),"nodes","memberships","sets","state_counts","node_data","edge_data","incidence_data"; seehg_get.net_hg().text_hypergraph"weights"(default),"documents","vocabulary","sentences"; seehg_get.text_hypergraph().net_temporal_hypergraph"memberships"(default),"edges","nodes".net_hon(hon())"rules"(default),"nodes","pathways".net_honem(honem())"embeddings"(default),"variance".net_hypa(hypa()on sequences)"scores"(default),"over","under","pathways".net_mogen(mogen())"orders"(default),"transitions","paths","pathways".net_markov_order(markov_order())"orders"(default),"null".net_path_dependence(memory())"contexts".net_markov_stability(hg_markov_stability())"states"(default),"passage_time","stationary".net_hon_boot(hg_bootstrap())"edges".net_hon_compare(hg_compare())"edges".net_hon_communities(hg_communities()on a memory network)"states"(default),"physical","modules","codelength","trials".simplicial_complex(simplicial())"simplices"(default),"f_vector","degree".q_analysis(hg_qanalysis())"q_levels"(default),"nodes".persistent_homology(hg_homology())"persistence"(default),"betti".persistence_landscape(hg_landscape())"landscape".hg_communities(hg_communities()on a hypergraph)hypernets_community_comparison,hypernets_motifs,net_hg_mmsbmsee their methods.
Examples
hg <- window_hypergraph(list(s1 = c("a", "b", "a", "c")), window = 2L)
hg_get(hg)
#> hyperedge size members weight
#> 1 h1 2 a, b 2
#> 2 h2 2 a, c 1
hg_get(hg, what = "nodes")
#> node degree
#> 1 a 2
#> 2 b 1
#> 3 c 1
seqs <- list(c("a", "b", "c", "a", "b", "c"), c("x", "b", "d", "x", "b", "d"))
hg_get(hon(seqs, max_order = 2), what = "nodes")
#> id node
#> 1 1 a
#> 2 2 b
#> 3 3 c
#> 4 4 d
#> 5 5 x