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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hypernetx-2.0.5.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.0.5.tar.gz
Algorithm Hash digest
SHA256 941272b4d7d68cef61c676f801c1e67f8b4ce0c1b3804ccf6233fb487dbbe6fd
MD5 ef98a205126ce63e5115960575eea876
BLAKE2b-256 4b3773ee3f11174f1632be1e7ce3ef51057ed2870d49322ed262af5f5942f8dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypernetx-2.0.5-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.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d023bd5c1fd1ae20dba381c7fe5353f1c1262027668b0f39a4c7f891b348af70
MD5 99cd7aa40f93475d5b7b681444c5da09
BLAKE2b-256 69c8dbb9844c909e0a9574905410deff7fe7666338eea86bf1ae95fc6529316b

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

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

This release

2.0.5 This release

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