Giter VIP home page Giter VIP logo

netutils's Introduction

netUtils

Codecov test coverage CRAN status CRAN Downloads

netUtils is a collection of tools for network analysis that may not deserve a package on their own and/or are missing from other network packages.

Installation

You can install the development version of netUtils with:

# install.packages("remotes")
remotes::install_github("schochastics/netUtils")

Functions

most functions only support igraph objects

helper/convenience functions
biggest_component() extracts the biggest connected component of a network.
delete_isolates() deletes vertices with degree zero.
bipartite_from_data_frame() creates a two mode network from a data frame.
graph_from_multi_edgelist() creates multiple graphs from a typed edgelist.
clique_vertex_mat() computes the clique vertex matrix.
graph_cartesian() computes the Cartesian product of two graphs.
graph_direct() computes the direct (or tensor) product of graphs.
str() extends str to work with igraph objects.

methods
dyad_census_attr() calculates dyad census with node attributes.
triad_census_attr() calculates triad census with node attributes.
core_periphery() fits a discrete core periphery model.
graph_kpartite() creates a random k-partite network.
split_graph() sample graph with perfect core periphery structure.
sample_coreseq() creates a random graph with given coreness sequence.
sample_pa_homophilic() creates a preferential attachment graph with two groups of nodes.
sample_lfr() create LFR benchmark graph for community detection.
structural_equivalence() finds structurally equivalent vertices.
fast_clique() computes cliques with MACE (faster than igraph for dense graphs).
reciprocity_cor() reciprocity as a correlation coefficient.

methods to use with caution
(this functions should only be used if you know what you are doing)
as_adj_list1() extracts the adjacency list faster, but less stable, from igraph objects.
as_adj_weighted() extracts the dense weighted adjacency matrix fast.

netutils's People

Contributors

ajaykmehta avatar schochastics avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.