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.2.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.2-py3-none-any.whl (95.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hypernetx-2.1.2.tar.gz
  • Upload date:
  • Size: 90.2 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.2.tar.gz
Algorithm Hash digest
SHA256 2d75b54058c2247e18c0e678de2016c566fb69458b4e9bdf85226afc1fa72c7f
MD5 a69a0cd041d37a0159550ceb77f53da5
BLAKE2b-256 868fcc97c0a5896f607a08ce0f118dae325dd684f1649d7b8714285dea088b4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypernetx-2.1.2-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.6

File hashes

Hashes for hypernetx-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5478eb1a8670c40b27dc829215df56826ed18cf3e8ad9723e4e9ca65c4dd9a21
MD5 d117ae53f234a0d48a202c8e1d43e81e
BLAKE2b-256 5cabc1880da4341d855475b92ce4f8092aea7933c5dd6dd7e2f72f8c3cc71102

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

2.1.3

2 files

This release

2.1.2 This release

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