Skip to main content

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.

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.3.tar.gz (90.2 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.3-py3-none-any.whl (95.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hypernetx-2.1.3.tar.gz
Algorithm Hash digest
SHA256 a15bc041b330880e08274ae07968992dc8fca8d16e4fe83b142384452c584bf8
MD5 b862362c26229f1389975624be2e270a
BLAKE2b-256 5fbf16ad18dba29292fc83321a30d908c551f55f1b5d431856cfcbaf5e6f7c7e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hypernetx-2.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b86eb7b43ad77c98bca7f9ceaf112a019e15fdbfc7fe5e04f2f3a135825bee0
MD5 da02229794d74a5a4f6f121c32eaf2ec
BLAKE2b-256 173041ae7c6990d15d8dda4e2d57bb9413320b65bd043b3ab57cf12dbe561d07

See more details on using hashes here.

Release history Release notifications | RSS feed

2.4.3

2 files

2.4.0

2 files

2.3.13

2 files

2.3.10

2 files

2.3.9

2 files

2.3.8

2 files

2.3.7

2 files

2.3.6

2 files

2.3.5

2 files

2.3.4

2 files

2.3.3

2 files

2.3.2

2 files

2.3.1

2 files

2.3.0

2 files

2.2.0

2 files

2.1.4

2 files

This release

2.1.3 This release

2 files

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.5

2 files

2.0.4

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0.post1

2 files

1.2.5

2 files

1.2.4

2 files

1.2.3

2 files

1.2.2

2 files

1.2

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

1 file

0.2.4

1 file

0.1.9

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page