Skip to content

Commit 2e1269b

Browse files
authored
Merge pull request #55 from stocnet/develop
v0.4.0
2 parents a1769d4 + 17b07f4 commit 2e1269b

File tree

114 files changed

+9022
-2561
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+9022
-2561
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ vignettes/precompile\.R
1717
^Meta$
1818
^CRAN-SUBMISSION$
1919
^README\.Rmd$
20+
^.mailmap$

.mailmap

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
James Hollway <james.hollway@graduateinstitute.ch> hollway <hollway@MA0359.local>

DESCRIPTION

+16-10
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
Package: manynet
2-
Title: Many Ways to Make, Modify, and Map Myriad Networks
3-
Version: 0.3.1
4-
Date: 2023-12-17
5-
Description: A set of tools for making, modifying, and mapping many different types of networks.
2+
Title: Many Ways to Make, Modify, Mark, and Map Myriad Networks
3+
Version: 0.4.0
4+
Date: 2024-01-24
5+
Description: A set of tools for making, modifying, marking, and mapping many different types of networks.
66
All functions operate with matrices, edge lists, and 'igraph', 'network', and 'tidygraph' objects,
77
and on one-mode, two-mode (bipartite), and sometimes three-mode networks.
88
The package includes functions for importing and exporting, creating and generating networks,
9-
molding and manipulating networks and node and tie attributes,
9+
modifying networks and node and tie attributes,
1010
and describing and visualizing networks with sensible defaults.
11-
URL: https://snlab-ch.github.io/manynet/
12-
BugReports: https://github.com/snlab-ch/manynet/issues
11+
URL: https://stocnet.github.io/manynet/
12+
BugReports: https://github.com/stocnet/manynet/issues
1313
Depends: R (>= 3.6.0)
1414
License: MIT + file LICENSE
1515
Language: en-GB
1616
Encoding: UTF-8
1717
LazyData: true
18-
RoxygenNote: 7.2.3
18+
RoxygenNote: 7.3.0
1919
Imports:
2020
dplyr (>= 1.1.0),
2121
ggplot2,
2222
ggraph,
2323
igraph (>= 1.6.0),
2424
network,
25+
pillar,
2526
tidygraph
2627
Suggests:
2728
BiocManager,
@@ -43,8 +44,10 @@ Suggests:
4344
rmarkdown,
4445
roxygen2,
4546
RSiena,
46-
testthat,
47-
xml2
47+
testthat (>= 3.0.0),
48+
xml2,
49+
future,
50+
furrr
4851
Enhances:
4952
Rgraphviz
5053
Authors@R:
@@ -59,3 +62,6 @@ Authors@R:
5962
comment = c("IHEID", ORCID = "0000-0003-3420-6085"))
6063
)
6164
Roxygen: list(markdown = TRUE, roclets = c("namespace", "rd"))
65+
Config/testthat/parallel: true
66+
Config/testthat/edition: 3
67+
Config/testthat/start-first: mark_is

NAMESPACE

+82-14
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ S3method(as_tidygraph,network.goldfish)
5454
S3method(as_tidygraph,siena)
5555
S3method(as_tidygraph,tbl_graph)
5656
S3method(delete_nodes,igraph)
57+
S3method(delete_ties,igraph)
5758
S3method(is_complex,data.frame)
5859
S3method(is_complex,igraph)
5960
S3method(is_complex,matrix)
@@ -100,7 +101,8 @@ S3method(is_weighted,igraph)
100101
S3method(is_weighted,matrix)
101102
S3method(is_weighted,network)
102103
S3method(is_weighted,tbl_graph)
103-
S3method(mutate,igraph)
104+
S3method(mutate_nodes,igraph)
105+
S3method(mutate_nodes,tbl_graph)
104106
S3method(na_to_mean,data.frame)
105107
S3method(na_to_mean,igraph)
106108
S3method(na_to_mean,matrix)
@@ -115,7 +117,19 @@ S3method(network_dims,data.frame)
115117
S3method(network_dims,igraph)
116118
S3method(network_dims,matrix)
117119
S3method(network_dims,network)
120+
S3method(plot,diff_model)
121+
S3method(plot,diffs_model)
122+
S3method(plot,learn_model)
123+
S3method(print,diff_model)
124+
S3method(print,diffs_model)
125+
S3method(print,learn_model)
126+
S3method(print,node_mark)
118127
S3method(print,tbl_graph)
128+
S3method(print,tie_mark)
129+
S3method(summary,diff_model)
130+
S3method(summary,diffs_model)
131+
S3method(summary,learn_model)
132+
S3method(to_acyclic,data.frame)
119133
S3method(to_acyclic,igraph)
120134
S3method(to_acyclic,matrix)
121135
S3method(to_acyclic,network)
@@ -256,6 +270,7 @@ export(add_tie_attribute)
256270
export(add_ties)
257271
export(aes)
258272
export(as.network)
273+
export(as_diffusion)
259274
export(as_edgelist)
260275
export(as_graphAM)
261276
export(as_igraph)
@@ -266,8 +281,8 @@ export(as_tidygraph)
266281
export(autographd)
267282
export(autographr)
268283
export(autographs)
269-
export(bind_edges)
270284
export(bind_node_attributes)
285+
export(bind_ties)
271286
export(create_components)
272287
export(create_core)
273288
export(create_empty)
@@ -278,11 +293,14 @@ export(create_ring)
278293
export(create_star)
279294
export(create_tree)
280295
export(delete_nodes)
296+
export(delete_ties)
281297
export(extract_tute)
298+
export(filter_nodes)
282299
export(filter_ties)
283300
export(from_egos)
284301
export(from_slices)
285302
export(from_subgraphs)
303+
export(from_ties)
286304
export(from_waves)
287305
export(generate_permutation)
288306
export(generate_random)
@@ -293,7 +311,6 @@ export(ggplot)
293311
export(ggsave)
294312
export(ggtitle)
295313
export(guides)
296-
export(is.igraph)
297314
export(is.network)
298315
export(is.tbl_graph)
299316
export(is_acyclic)
@@ -305,7 +322,9 @@ export(is_dynamic)
305322
export(is_edgelist)
306323
export(is_eulerian)
307324
export(is_graph)
325+
export(is_igraph)
308326
export(is_labelled)
327+
export(is_list)
309328
export(is_longitudinal)
310329
export(is_manynet)
311330
export(is_multiplex)
@@ -328,6 +347,7 @@ export(layout_tbl_graph_railway)
328347
export(layout_tbl_graph_triad)
329348
export(many_palettes)
330349
export(mutate)
350+
export(mutate_nodes)
331351
export(mutate_ties)
332352
export(na_to_mean)
333353
export(na_to_zero)
@@ -337,8 +357,25 @@ export(network_nodes)
337357
export(network_tie_attributes)
338358
export(network_ties)
339359
export(node_attribute)
360+
export(node_is_core)
361+
export(node_is_cutpoint)
362+
export(node_is_exposed)
363+
export(node_is_fold)
364+
export(node_is_infected)
365+
export(node_is_isolate)
366+
export(node_is_latent)
367+
export(node_is_max)
368+
export(node_is_mentor)
369+
export(node_is_min)
370+
export(node_is_random)
371+
export(node_is_recovered)
340372
export(node_mode)
341373
export(node_names)
374+
export(pkg_data)
375+
export(play_diffusion)
376+
export(play_diffusions)
377+
export(play_learning)
378+
export(play_segregation)
342379
export(read_dynetml)
343380
export(read_edgelist)
344381
export(read_graphml)
@@ -347,6 +384,7 @@ export(read_nodelist)
347384
export(read_pajek)
348385
export(read_ucinet)
349386
export(rename)
387+
export(rename_nodes)
350388
export(rename_ties)
351389
export(run_tute)
352390
export(scale_color_centres)
@@ -361,6 +399,18 @@ export(scale_colour_iheid)
361399
export(scale_colour_rug)
362400
export(scale_colour_sdgs)
363401
export(scale_colour_uzh)
402+
export(scale_edge_color_centres)
403+
export(scale_edge_color_ethz)
404+
export(scale_edge_color_iheid)
405+
export(scale_edge_color_rug)
406+
export(scale_edge_color_sdgs)
407+
export(scale_edge_color_uzh)
408+
export(scale_edge_colour_centres)
409+
export(scale_edge_colour_ethz)
410+
export(scale_edge_colour_iheid)
411+
export(scale_edge_colour_rug)
412+
export(scale_edge_colour_sdgs)
413+
export(scale_edge_colour_uzh)
364414
export(scale_fill_centres)
365415
export(scale_fill_ethz)
366416
export(scale_fill_iheid)
@@ -374,6 +424,14 @@ export(theme_iheid)
374424
export(theme_rug)
375425
export(theme_uzh)
376426
export(tie_attribute)
427+
export(tie_is_bridge)
428+
export(tie_is_feedback)
429+
export(tie_is_loop)
430+
export(tie_is_max)
431+
export(tie_is_min)
432+
export(tie_is_multiple)
433+
export(tie_is_random)
434+
export(tie_is_reciprocated)
377435
export(tie_signs)
378436
export(tie_weights)
379437
export(to_acyclic)
@@ -400,6 +458,7 @@ export(to_slices)
400458
export(to_subgraph)
401459
export(to_subgraphs)
402460
export(to_ties)
461+
export(to_tree)
403462
export(to_twomode)
404463
export(to_undirected)
405464
export(to_uniplex)
@@ -431,9 +490,11 @@ importFrom(dplyr,mutate)
431490
importFrom(dplyr,rename)
432491
importFrom(dplyr,select)
433492
importFrom(dplyr,summarise)
493+
importFrom(dplyr,tibble)
434494
importFrom(dplyr,ungroup)
435495
importFrom(ggplot2,aes)
436496
importFrom(ggplot2,arrow)
497+
importFrom(ggplot2,geom_histogram)
437498
importFrom(ggplot2,geom_point)
438499
importFrom(ggplot2,geom_segment)
439500
importFrom(ggplot2,geom_text)
@@ -456,19 +517,20 @@ importFrom(ggraph,geom_node_label)
456517
importFrom(ggraph,geom_node_point)
457518
importFrom(ggraph,geom_node_text)
458519
importFrom(ggraph,get_con)
459-
importFrom(ggraph,ggraph)
460520
importFrom(ggraph,scale_edge_width_continuous)
461521
importFrom(igraph,E)
462522
importFrom(igraph,V)
463523
importFrom(igraph,add_edges)
464524
importFrom(igraph,add_vertices)
525+
importFrom(igraph,any_loop)
465526
importFrom(igraph,any_multiple)
527+
importFrom(igraph,articulation_points)
466528
importFrom(igraph,as.directed)
467529
importFrom(igraph,as.undirected)
468530
importFrom(igraph,as_adjacency_matrix)
469531
importFrom(igraph,as_biadjacency_matrix)
470532
importFrom(igraph,as_data_frame)
471-
importFrom(igraph,bipartite.projection)
533+
importFrom(igraph,bipartite_projection)
472534
importFrom(igraph,complementer)
473535
importFrom(igraph,decompose)
474536
importFrom(igraph,degree)
@@ -479,23 +541,22 @@ importFrom(igraph,delete_vertices)
479541
importFrom(igraph,edge_attr)
480542
importFrom(igraph,edge_attr_names)
481543
importFrom(igraph,eulerian_path)
544+
importFrom(igraph,feedback_arc_set)
482545
importFrom(igraph,get.edgelist)
483-
importFrom(igraph,get.vertex.attribute)
484546
importFrom(igraph,graph_from_adjacency_matrix)
485547
importFrom(igraph,graph_from_biadjacency_matrix)
486548
importFrom(igraph,graph_from_data_frame)
487549
importFrom(igraph,gsize)
550+
importFrom(igraph,has_eulerian_path)
488551
importFrom(igraph,induced_subgraph)
489-
importFrom(igraph,is.connected)
490-
importFrom(igraph,is.directed)
491-
importFrom(igraph,is.igraph)
492-
importFrom(igraph,is.loop)
493-
importFrom(igraph,is.named)
494-
importFrom(igraph,is.simple)
495-
importFrom(igraph,is.weighted)
496552
importFrom(igraph,is_bipartite)
553+
importFrom(igraph,is_connected)
497554
importFrom(igraph,is_dag)
498-
importFrom(igraph,list.vertex.attributes)
555+
importFrom(igraph,is_directed)
556+
importFrom(igraph,is_igraph)
557+
importFrom(igraph,is_named)
558+
importFrom(igraph,is_simple)
559+
importFrom(igraph,is_weighted)
499560
importFrom(igraph,make_ego_graph)
500561
importFrom(igraph,make_lattice)
501562
importFrom(igraph,make_line_graph)
@@ -515,6 +576,9 @@ importFrom(igraph,simplify)
515576
importFrom(igraph,vcount)
516577
importFrom(igraph,vertex_attr)
517578
importFrom(igraph,vertex_attr_names)
579+
importFrom(igraph,which_loop)
580+
importFrom(igraph,which_multiple)
581+
importFrom(igraph,which_mutual)
518582
importFrom(igraph,write_graph)
519583
importFrom(network,as.edgelist)
520584
importFrom(network,as.matrix.network)
@@ -529,13 +593,17 @@ importFrom(network,list.edge.attributes)
529593
importFrom(network,network.size)
530594
importFrom(network,read.paj)
531595
importFrom(network,set.vertex.attribute)
596+
importFrom(pillar,style_subtle)
597+
importFrom(pillar,tbl_format_body)
598+
importFrom(pillar,tbl_format_setup)
532599
importFrom(stats,cor)
533600
importFrom(tidygraph,.E)
534601
importFrom(tidygraph,.G)
535602
importFrom(tidygraph,.N)
536603
importFrom(tidygraph,activate)
537604
importFrom(tidygraph,as_tbl_graph)
538605
importFrom(tidygraph,bind_edges)
606+
importFrom(tidygraph,filter)
539607
importFrom(tidygraph,is.tbl_graph)
540608
importFrom(tidygraph,mutate)
541609
importFrom(tidygraph,node_is_isolated)

0 commit comments

Comments
 (0)