Skip to main content

HyperNetX is a Python library for the creation and study of hypergraphs.

Project description

The HyperNetX library provides classes and methods for the analysis and visualization of complex network data modeled as hypergraphs. The library generalizes traditional graph metrics.

HypernetX was developed by the Pacific Northwest National Laboratory for the Hypernets project as part of its High Performance Data Analytics (HPDA) program. PNNL is operated by Battelle Memorial Institute under Contract DE-ACO5-76RL01830.

  • Principal Developer and Designer: Brenda Praggastis

  • Development Team: Madelyn Shapiro, Mark Bonicillo

  • Visualization: Dustin Arendt, Ji Young Yun

  • Principal Investigator: Cliff Joslyn

  • Program Manager: Brian Kritzstein

  • Principal Contributors (Design, Theory, Code): Sinan Aksoy, Dustin Arendt, Mark Bonicillo, Helen Jenne, Cliff Joslyn, Nicholas Landry, Audun Myers, Christopher Potvin, Brenda Praggastis, Emilie Purvine, Greg Roek, Madelyn Shapiro, Mirah Shi, Francois Theberge, Ji Young Yun

The code in this repository is intended to support researchers modeling data as hypergraphs. We have a growing community of users and contributors. Documentation is available at: https://pnnl.github.io/HyperNetX

For questions and comments contact the developers directly at: hypernetx@pnnl.gov

New Features in Version 2.0

HNX 2.0 now accepts metadata as core attributes of the edges and nodes of a hypergraph. While the library continues to accept lists, dictionaries and dataframes as basic inputs for hypergraph constructions, both cell properties and edge and node properties can now be easily added for retrieval as object attributes.

The core library has been rebuilt to take advantage of the flexibility and speed of Pandas Dataframes. Dataframes offer the ability to store and easily access hypergraph metadata. Metadata can be used for filtering objects, and characterize their distributions by their attributes.

Version 2.0 is not backwards compatible. Objects constructed using version 1.x can be imported from their incidence dictionaries.

What’s New

  1. The Hypergraph constructor now accepts nested dictionaries with incidence cell properties, pandas.DataFrames, and 2-column Numpy arrays.

  2. Additional constructors accept incidence matrices and incidence dataframes.

  3. Hypergraph constructors accept cell, edge, and node metadata.

  4. Metadata available as attributes on the cells, edges, and nodes.

  5. User-defined cell weights and default weights available to incidence matrix.

  6. Meta data persists with restrictions and removals.

  7. Meta data persists onto s-linegraphs as node attributes of Networkx graphs.

  8. New hnxwidget available using pip install hnxwidget.

What’s Changed

  1. The static and dynamic distinctions no longer exist. All hypergraphs use the same underlying data structure, supported by Pandas dataFrames. All hypergraphs maintain a state_dict to avoid repeating computations.

  2. Methods for adding nodes and hyperedges are currently not supported.

  3. The nwhy optimizations are no longer supported.

  4. Entity and EntitySet classes are being moved to the background. The Hypergraph constructor does not accept either.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypernetx-2.1.1.tar.gz (90.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hypernetx-2.1.1-py3-none-any.whl (95.8 kB view details)

Uploaded Python 3

File details

Details for the file hypernetx-2.1.1.tar.gz.

File metadata

  • Download URL: hypernetx-2.1.1.tar.gz
  • Upload date:
  • Size: 90.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for hypernetx-2.1.1.tar.gz
Algorithm Hash digest
SHA256 3a330dcb345c144a9f49e2127c1492d4737695335d9931e53c5fa5657e3a90f7
MD5 a0081d4022055e6a1d9ebeffc6252006
BLAKE2b-256 101aa2a2419261296c6b8fc01333142377f352c46b03180a83ce1f6a741b4100

See more details on using hashes here.

File details

Details for the file hypernetx-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: hypernetx-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 95.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for hypernetx-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e6d181dfc013256275f0c6b15d5a453cc75851e3800c40cf2979fa1cbea48df
MD5 de275d6ab08bbaf129a69278526e329d
BLAKE2b-256 cef8083b9b5986342a593fb1f59a962425cb687152b747b0a7e2877cb2435fc9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page